Facebook图API - 评论限制在999 [英] facebook graph API - comments limited to 999
问题描述
该邮件本身的调用:
$ b我想通过FB Graph API获取特定Facebook发布的所有评论。$ b
graph.facebook.com/129047777209815_279367092177882/?access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
收到有5278条评论。
查询偏移= 900,limit = 100的评论:
https://graph.facebook.com/129047777209815_279367092177882/comments?limit=100&offset=900&value=1&base_amount=1&access_token=XXXXXXXXXXXXXXX|XXXXXXXXXXXXXXXXXXXXXXXXXXX&__after_id=129047777209815_279367092177882_1122143
分页:{
next:https://graph.facebook.com/129047777209815_279367092177882/comments?limit=100&offset=1000&value=1&base_amount=1&access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&__after_id=129047777209815_279367092177882_1122270}
然而查询
graph.facebook.com/ 129047777209815_279367092177882 /评论?limit = 100& offset = 1000& value = 1& base_amount = 1& access_token = XXXXXXXXXXXXXXX | XXXXXXXXXXXXXXXXXXXXXXXXXXX& __ after_id = 129047777209815_279367092177882_1122270
< >根本不给我任何意见。
不仅仅是这篇文章,我一直注意到我永远不会收到超过999条评论。
任何人都可以告诉我如何获得超过999条评论?这是Facebook的限制吗?我不能在文档中找到它。
谢谢,
Paul
为什么要使用 __ after_id
令牌?
以下内容似乎在Graph API资源管理器中完美无缺。
129047777209815_279367092177882 / comments?limit = 100& offset = 5277& value = 1& base_amount = 1
以上检索 5278th 评论。尝试在图形API资源管理器。
999的限制可能适用于 __ after_id
参数。它似乎没有很好的记录。 (相关错误)
I'm trying to fetch all comments for a particular Facebook post via the FB Graph API.
The call for the post itself:
graph.facebook.com/129047777209815_279367092177882/?access_token=XXXXXXXXXXXXXXX|XXXXXXXXXXXXXXXXXXXXXXXXXXX
yields that there are 5278 comments.
Querying for the comments with offset=900, limit=100:
https://graph.facebook.com/129047777209815_279367092177882/comments?limit=100&offset=900&value=1&base_amount=1&access_token=XXXXXXXXXXXXXXX|XXXXXXXXXXXXXXXXXXXXXXXXXXX&__after_id=129047777209815_279367092177882_1122143
yields
"paging": {
"next": "https://graph.facebook.com/129047777209815_279367092177882/comments?limit=100&offset=1000&value=1&base_amount=1&access_token=XXXXXXXXXXXXXXX|XXXXXXXXXXXXXXXXXXXXXXXXXXX&__after_id=129047777209815_279367092177882_1122270"}
Yet querying
graph.facebook.com/129047777209815_279367092177882/comments?limit=100&offset=1000&value=1&base_amount=1&access_token=XXXXXXXXXXXXXXX|XXXXXXXXXXXXXXXXXXXXXXXXXXX&__after_id=129047777209815_279367092177882_1122270
doesn't give me any comments at all. It's not just this post, I've noticed consistently that I can never retrieve more than 999 comments. Can anyone tell me how to get more than 999 comments? Is this a Facebook limit? I can't find it in the docs.
Thanks, Paul
Why are you using the __after_id
token?
The following seems to work perfectly in the Graph API Explorer.
129047777209815_279367092177882/comments?limit=100&offset=5277&value=1&base_amount=1
The above retrieves the 5278th comment. Try it out in the Graph API Explorer.
The limit of 999 might apply to the __after_id
parameter. It doesn't seem to be well-documented. (Related Bug)
这篇关于Facebook图API - 评论限制在999的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!