如何通过嵌入外部网站的“赞”按钮获取 Facebook 用户喜欢的所有 URL(Facebook 之外)?
我尝试了几种选择: https://graph.facebook.com/me/likes , https://graph.facebook.com/me/links 和几个 FQL 查询 - 但没有返回用户通过外部站点上的“赞”按钮制作的“赞”。
有什么想法吗?
I tried several options:
https://graph.facebook.com/me/likes ,
https://graph.facebook.com/me/links
and a couple of FQL queries - but none returned Likes a user makes via Like buttons on external sites.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您只需获取 扩展权限。 facebook.com/docs/authentication/permissions/" rel="nofollow">user_likes,您将得到您正在寻找的东西......
You just take the Extended Permission of user_likes, you will get what you are looking for....
我认为 user_likes 只授予您查看用户喜欢的所有真实对象的权限:
一部电影、一位音乐家...
例如,如果页面被标记为文章:
它不会显示在点赞请求中
https://graph.facebook.com/me/likes
因为社交图中没有它的对象:
“请注意,开放图谱协议目前设计用于支持现实生活中的对象。如果您的 URL 是一段内容(例如新闻文章、照片、视频或类似内容),您应该将 og:type 设置为文章(见下文) )文章类型的页面没有发布权,并且不会显示在用户的个人资料中,因为它们不是现实世界的对象。”
(http://developers.facebook.com/docs/opengraph/)
我也在寻找相同的api请求,如果我能找到它,我会告诉你......
编辑:
好吧,我在 Facebook 上问了这个问题:
http://forum.developers.facebook.net/viewtopic.php?id=94745
但没有办法做到这一点。
I think that user_likes only give you the permission to see all real objects that the user likes:
a movie,a musician...
if a page is tagged as article for example:
it won't be shown in the likes request
https://graph.facebook.com/me/likes
cause there is no object in the social graph for it:
"Note that the Open Graph protocol is currently designed to support real-life objects. If your URL is a piece of content — such as a news article, photo, video, or similar — you should set og:type to article (see below). Pages of type article do not have publishing rights, and will not show up on user's profiles because they are not real world objects."
(http://developers.facebook.com/docs/opengraph/)
I am also looking for the same api request, I'll let you know if I'll find it...
Editing:
Ok I asked this question on Facebook:
http://forum.developers.facebook.net/viewtopic.php?id=94745
and there is no way of doing that.