使用 Facebook 图形 API 获取喜欢网页的用户
我正在努力使用 Facebook API。我想要做的是能够查看用户的提要,查看他们单击“喜欢”的网页,然后获取喜欢同一网页的其他用户。我有两个问题。
1)每当我收到用户的提要时,所有“喜欢”都会从提要中删除。这非常令人沮丧,因为它就像 Facebook 会给我一切,除了我正在寻找的东西!
2) 我似乎无法获得喜欢某个 URL 的用户 ID 列表。我尝试过像这样使用 FQL:
SELECT user_id FROM like WHERE object_id=114324145263104
正如另一个 SO 问题中所建议的那样,但在我的所有尝试中都没有返回任何内容。
有谁知道如何做到这一点,或者是否可能?感谢您的帮助!
I'm struggling with the Facebook API. What I want to do is to be able to look at a user's feed, see which web pages they clicked "Like" on, and then get the other users who like the same web page. I'm having two problems.
1) Whenever I get the feed of a user, all of the "Likes" are removed from the feed. Its very frustrating because its like Facebook will give me everything except for exactly what I'm looking for!
2) I can't seem to get a list of user IDs who like a certain URL. I've tried using FQL like this:
SELECT user_id FROM like WHERE object_id=114324145263104
As was suggested in another SO question, but that returned nothing on all of my attempts.
Does anyone know how to do this, or if its even possible? Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一个不同的查询用于获取 url 的链接。
在您的情况下,
There is a different query for getting the linkes of a url
In your case it is.
我也有同样的问题。这就是我所做的
https://graph.facebook.com/URL
或者如果您有多个网址,请点击到
https://graph.facebook.com/?ids=URL1,URL2,URL3< /a>
I had the same problem. This is what i do
https://graph.facebook.com/URL
OR if you have multiple URLs click to
https://graph.facebook.com/?ids=URL1,URL2,URL3