每个帖子无法获取超过 100 条评论
我们正在尝试从 Facebook 获取数据。当尝试使用 fql 查询获取所有评论时,Facebook 每个帖子返回的评论少于 100 条。
以下是使用的 fql 查询。
SELECT text,id
FROM comment
WHERE post_id in (select post_id from stream where source_id=**** and actor_id = ****)
也尝试过
SELECT text,id FROM comment WHERE post_id = ****
请帮我解决问题。预先感谢
注意:source_id 和 actor_id 相同。提到的 post_is 有超过 100 条评论 (180),但仅返回 99 条评论
We are trying to get the data from facebook. When trying to get all the comments using the fql query facebook is returning less than 100 comments per post.
Following is the fql query used.
SELECT text,id
FROM comment
WHERE post_id in (select post_id from stream where source_id=**** and actor_id = ****)
also tried
SELECT text,id FROM comment WHERE post_id = ****
Please help me solve the problem. Thanks in advance
note : both source_id and actor_id are same. and post_is mentioned has more than 100 comments (180) and is returning only 99 comments
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用带限制的 fql 查询。它会起作用的。
Use fql query with limit. It will work.
请注意,从 graph api 版本 2.1 开始,fql 已被弃用
https ://graph.facebook.com/v2.3/post-id?fields=comments&access_token=ACCESS_TOKEN 通过分页为您提供该帖子的所有评论。
https://graph.facebook .com/v2.3/post-id?fields=comments.summary(true)&access_token=ACCESS_TOKEN 将为您提供该帖子的所有评论,分页并使用“comments.summary(true)”为您提供“摘要”json 对象以及数据和分页,还为您提供总评论数。
Please note that fql is deprecated from graph api version 2.1 onwards
https://graph.facebook.com/v2.3/post-id?fields=comments&access_token=ACCESS_TOKEN gives you all the comments of that post with paging.
https://graph.facebook.com/v2.3/post-id?fields=comments.summary(true)&access_token=ACCESS_TOKEN will give you all the comments of that post with paging and also using "comments.summary(true)" gives you "summary" json object along with data and paging which gives you total comments count also.