如何使用图形 API 获取 Facebook 用户的特定类别点赞
我对此很陌生。我正在使用 Facebook Graph API,并且能够使用调用
获取我所有的点赞 $all_likes = json_decode(file_get_contents('https://graph.facebook.com/me/likes?access_token='.[access_token]));
现在,当我显示这些内容时,它们有一个名为 category 的字段,它具有不同的值,例如 TV Show、Book、公众人物等。
所以我的问题是如何获得特定类别的点赞 - 例如我只想获取我喜欢的所有书籍
显然可以获取所有点赞并存储它们在服务器端并对其进行处理,但“喜欢”列表对于某些用户来说太大了,如果您只想显示某个类别,则提取所有内容是没有意义的。
我觉得我失去了一些东西。 如果无法通过图形 API 调用实现,那么甚至欢迎使用 FQL 解决方案。 感谢您抽出时间
R
I'm pretty new at this. I was playing with the Facebook Graph API and was able to pull all my LIKES using the call
$all_likes = json_decode(file_get_contents('https://graph.facebook.com/me/likes?access_token='.[access_token]));
Now when I display these, they have a field called category which has different values like TV Show, Book, Public Figure etc.
So my question is how do I get category specific likes - for instance I just want to fetch ALL the BOOKS that I LIKE
Obviously its possible to fetch all the likes and store them on the server side and work on it but the LIKES list is too huge for certain users and it doesn't make sense to pull everything if you just want to show a certain category.
I feel like I'm missing something.
If its not possible through the graph API call, then even a FQL solution is welcome.
Thanks for your time
R
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 FQL,就像 答案:
You can use FQL, just like in this answer: