Instagram API:/ users / self / media / recent端点是否有时间限制?

时间:2016-11-16 02:30:57

标签: instagram instagram-api

我试图为拥有24个帖子的用户迭代所有Instagram帖子(计数= 8)。第一个结果返回8个帖子和以下分页对象:

Request:
{ count: 8, max_id: undefined }

Response:
results =  8
pagination = {
  next_url: 'https://api.instagram.com/v1/users/991120266/media/recent?access_token=TOKEN&count=8&max_id=653406866835254619_991120266',
  next_max_id: '653406866835254619_991120266',
}

Request:
{ count: 8, max_id: '653406866835254619_991120266' }

Response:
results =  8
pagination =  {
  next_url: 'https://api.instagram.com/v1/users/991120266/media/recent?access_token=TOKEN&count=8&max_id=653404659733769534_991120266',
  next_max_id: '653404659733769534_991120266',
 }

Request:
{ count: 8, max_id: '653404659733769534_991120266' }

Response:
results =  4
pagination =  {}

它正确地提取了用户的最新Instagram帖子,但在最后一个请求中,它只返回4个帖子并省略了最早的4个帖子。为什么Instagram没有返回最后4个帖子?我也试过设置" count"到30但它仍然只返回相同的20个结果。我还尝试将min_id设置为0而不是max_id,但它也不会返回这些帖子。

1 个答案:

答案 0 :(得分:2)

哎呀,我使用的沙盒应用程序限制为每个用户20个结果!解决方案:获取应用程序批准退出沙箱。