查询用户通过 Facebook 点赞按钮点赞的 url?
我想向用户提供他/她在我的网站上单击“赞”按钮的网址列表。
这是某种“最喜欢的列表”。用户应该受益,并且应该鼓励喜欢页面。
单击 Like 按钮并传递 url 时会触发 edge.create
和 edge.remove
javascript 回调事件。我可以将其实时写入我的数据库。
然而,此事件是异步的,大约需要一秒钟,因此不能保证完全完成。因此,我想在页面上为用户提供一个“同步”链接,用户可以在其中获取他/她在我的页面上喜欢的帖子列表。
在图形 API 上有 https://graph.facebook.com/me/likes
连接。然而,这似乎只包括被点赞的“Facebook 页面”。不是通过“喜欢”按钮的网址。
我有 og
标签设置,因此每个喜欢的页面都应该自动添加为 Facebook 页面,但它们不包含在响应中。
经过一番研究后,我遇到了这个查询:
SELECT post_id, likes FROM stream WHERE source_id = me() and likes.user_likes = 1
它看起来很有希望,但 user_likes 字段没有索引,因此无法对其进行过滤。
我也无法对 FQL like
表做太多事情,因为我对喜欢特殊链接的用户不感兴趣。
我想知道用户在我的网站上喜欢的链接。
这有可能吗?
I want to offer the user a list of urls that he/she has clicked the like button on my site.
This is some sort of "favorite list". The user should have a benefit and also it should encourage liking pages.
There is the edge.create
and edge.remove
javascript callback event that fires when the like button is clicked and also passes the url. I can real-time write that into my database.
However this event is asynchronous, takes about a second and is thus not guarantee to go all the way through. So i want to offer the user a "synchronize" link on the page where the user gets the list of posts he/she liked on my page.
On the graph API there is the https://graph.facebook.com/me/likes
connection. However this seems to only include "facebook pages" that have been liked. Not urls via the like button.
I have the og
tags setup, so every liked page should be automatically added as a facebook page, but they are however not included in the response.
After some research I came across this query:
SELECT post_id, likes FROM stream WHERE source_id = me() and likes.user_likes = 1
which looks promising but the user_likes field is not indexed and thus cannot be put a filter on.
I also cannot do much with the FQL like
table because I am not interested in the users that liked a special link.
I want to know the links that a user liked on my website.
Is it somehow possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://developers.facebook.com/docs/reference/fql/url_like/
你可以尝试使用url_link表,该表只能通过user_id查询。它将返回给您,他/她喜欢的所有网址。但是,您需要在应用程序中过滤返回的列表以获取您自己的网址
http://developers.facebook.com/docs/reference/fql/url_like/
You can try using the url_link table which can only be queried with the user_id. It will return to you, all the urls he/she liked. However you need to filter the returned list on your application for your own urls