Facebook 页面“点赞”和“点赞”之间有什么区别?和外部 URL“喜欢”?并且“user_likes”是否会增加?权限范围可以同时访问两者吗?
我想提取用户所有 Facebook“喜欢”的列表,无论它们是 Facebook 页面还是外部 URL。
示例:
如果您“喜欢”Facebook 平台,我知道我可以通过 /me/likes API 调用。
但是,如果您喜欢 外部URL,我不知道如何获取它。两者都应该通过 /me/likes
调用拉取吗?或者是否有另一个调用来处理外部喜欢?
此外,新闻源/流喜欢怎么样?例如,如果我“喜欢”我在信息流中看到的照片、视频、状态或链接,可以通过 API 访问吗?如果是这样,如何访问它?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,user_likes 可以让您访问两者。
您可以通过 Graph API 访问外部点赞端点
/me/likes
,只要它们不是文章。类型为“文章”的对象并不代表现实世界的对象,因此,我们不会提供个人资料。我们在 Open Graph 文档页面上提到了这一点(尽管很模糊):https://developers.facebook.com/docs/opengraph/#types所以如果你去我的假的电影对象页面位于
http://fbsb.hoodlu.ms/so_7436857/video2.html
和点击“赞”,当您在 赞时,就会显示该赞rel="nofollow">https://graph.facebook.com/me/likes。
使用 Graph API 浏览器进行尝试:
https://developers. facebook.com/tools/explorer/?method=GET&path=me%2Flikes
如果您想要某人喜欢的网址,请使用此FQL 查询:
更多信息请访问 https://developers.facebook.com/docs/reference/fql/url_like/。
如果您想从帖子、照片、视频等访问点赞,则需要使用
点赞
和流
FQL表。要提取当前用户的点赞(帖子/照片/视频):从那里,您可以查询帖子的
stream
表以获取更多信息。like
表文档:https://developers.facebook.com /docs/reference/fql/like/。stream
表文档:https://developers.facebook.com /docs/reference/fql/stream/Yes, user_likes will give you access to both.
You can access external likes as you wish through the Graph API endpoint
/me/likes
, as long as they're not articles. Objects with type "article" do not represent real-world objects and as such, we don't provide on a person's profile. We mention this (albeit obscurely) on the Open Graph documentation page: https://developers.facebook.com/docs/opengraph/#typesSo if you go to my fake movie object page at
http://fbsb.hoodlu.ms/so_7436857/video2.html
and click like, that will show up when you access your likes on https://graph.facebook.com/me/likes.
Try it using the Graph API explorer:
https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Flikes
If you want the URLs that someone has liked, use this FQL query:
More information is available at https://developers.facebook.com/docs/reference/fql/url_like/.
If you want to access the likes from a post, photo, video, etc. you'll need to use the
like
andstream
FQL tables. To just pull out the likes (of posts/photos/videos) for the current user:From there, you would query the
stream
table for the post to get more information.like
table documentation: https://developers.facebook.com/docs/reference/fql/like/.stream
table documentation: https://developers.facebook.com/docs/reference/fql/stream/Facebook 现在有两种读取点赞数的方法。如果您想获得外部 URL 的点赞,请尝试以下操作:
如果您希望从内部 Facebook 页面(粉丝页面、个人资料、照片等)获得点赞,请尝试以下操作:
结账:https://developers.facebook.com/tools/explorer
Facebook now has two ways to read likes. If you would like to get the likes of an external URL you try this:
And if you wish get the likes from an internal Facebook page (fan page,profile,photo like) try this:
Checkout: https://developers.facebook.com/tools/explorer