简体   繁体   English

Facebook API:获取所有喜欢的帖子

[英]Facebook API: Get all likes of a post

I want to get all users that liked a post of a page. 我希望得到所有喜欢页面帖子的用户。 I'm setting LIMIT 200000, but it's returning 1000, and the post has 1200 likes. 我设置LIMIT 200000,但它返回1000,帖子有1200个喜欢。 What are my options? 我有什么选择?

FQL: FQL:

select post_id, user_id
  from like 
 where post_id = "XXXXX"
  LIMIT 200000

By default,Facebook Graphi API returns only the first 1000 results,Doesn't matter what your Limit Parameter is set to. 默认情况下,Facebook Graphi API仅返回前1000个结果,无论您的限制参数设置为什么。

To overcome this problem,There is a paging key provided in the JSON parsed array,Something like this, 为了解决这个问题,在JSON解析数组中提供了一个分页键,像这样的东西,

"paging": { "cursors": { "after": "MzE0NzA0Njc0ODE0", "before": "Nzc5NTQ3MDU1NDAyNjc4" }, "next": "https://graph.facebook.com/v2.0/734056698/likes?limit=25&after=MzE0NzA0Njc0ODE0" }

Here,You will be needing to access the next value to get your rest 200 likes. 在这里,您将需要访问下一个值以获得其他200个喜欢。 Regards 问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM