每篇文章无法提取超过100条评论

时间:2010-10-12 09:30:18

标签: facebook facebook-fql

我们正试图从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条评论

2 个答案:

答案 0 :(得分:1)

使用带有限制的fql查询。它会起作用。

答案 1 :(得分:0)

请注意,从图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对象以及数据和分页,这也为您提供了总评论数。

相关问题