每个帖子无法获取超过 100 条评论

发布于 2024-09-27 01:46:34 字数 428 浏览 4 评论 0原文

我们正在尝试从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一世旳自豪 2024-10-04 01:46:34

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

Use fql query with limit. It will work.

油饼 2024-10-04 01:46:34

请注意,从 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文