帖子分页 [next] 值最终返回一个应填充的空数组


Posts paging [next] value eventually returns a empty array that should be populated

让我们像多米诺骨牌一样简单。当我运行像 https://graph.facebook.com/dominos/posts?limit=200&access_token=[任何旧访问令牌]这样的查询时,它会为我提供第一页的帖子数据。然后我转到底部并获取下一个,在下一个值的第 5 页或第 6 页之后,我得到一个空数组。但是当我访问多米诺骨牌Facebook页面时,他们在包含数据的最后一页上的最后一篇文章的最后日期之后有更多的数据。

我知道要访问私有数据,您需要特定的访问令牌,但这些数据都是公开的,我知道这是因为我不必登录即可查看它。

要重新创建它,请执行以下操作:

  1. 在浏览器 https://graph.facebook.com/dominos/posts?limit=200 中

  2. 转到页面底部并获取下一个网址

  3. 继续执行#2,直到到达页面#5或#6,您将获得一个空的数据数组,阻止您进一步分页。

任何帮助或见解都会很棒。

[编辑 04-20-2012]好的,更多信息:

我认为这仅与帖子有关。当我这样做时:https://graph.facebook.com/dominos/tagged?access_token=[anaccesstoken]&until=1262412000我得到了一页结果。

当我这样做时:https://graph.facebook.com/dominos/posts?access_token=[anaccesstoken]&until=1262412000我没有。但它们显然是那里的帖子。

我还检查了提要:https://graph.facebook.com/dominos/feed?access_token=[anaccesstoken]&until=1262412000。

那里标记了一堆用户,但没有Domino的页面帖子。

请阅读文章

the maximum number of results we will fetch before running the visibility checks is 5,000

1262412000是2年前Jan 2010的一天,最有可能的是你在过去2年里有超过5000个帖子,所以你拿不到超过5000个帖子。

我也试过https://graph.facebook.com/dominos/posts?limit=200&access_token=[anaccesstoken]&until=1322400000,我可以得到数据。所以until parameter效果很好。