我正在玩Facebook的图形API,我想要了解更多关于他们使用的光标分页的信息。
我的访问令牌<MY_ACCESS_TOKEN_ID>
,如果类型为https://developers.facebook.com/docs/facebook-login/access-tokens/#usertokens
我尝试访问的帖子不属于我,但属于公开(它是一个随机页面,发布有趣的模因并收到数千条评论)。
https://graph.facebook.com/v2.8/<MY_POST_ID>/comments?access_token=<MY_ACCESS_TOKEN_ID>
这会返回一个我想要的小列表。但是,我希望横列这份清单。这是get请求的结果。
{
...// comments above here.
"paging": {
"cursors": {
"before": "<BEFORE_ID>",
"after": "<AFTER_ID>"
},
"next": "https://graph.facebook.com/v2.8/<MY_POST_ID>/comments?access_token=<MY_ACCESS_TOKEN_ID>&pretty=1&limit=25&after=<AFTER_ID>"
}
我粘贴了"next"
网址,但是我遇到了以下错误:
{
"error": {
"message": "(#100) The After Cursor specified exeeds the max limit supported by this endpoint",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "<FBTRACE_ID>"
}
}
任何人都知道了什么?
我已经替换了<MY_POST_ID>
等的实际ID,如果你还没有弄明白的话。