Instagram API 和分页

Instagram API and Pagination

我无法使用 Instagram 获取所有图片 API,分页功能似乎有些不同,我还无法理解

我使用请求: https://api.instagram.com/v1/users/self/media/recent?access_token=TOKEN

并可以获得前 20 张照片:

...
{
  "attribution": null,
  "tags": [
    "beautiful",
    "instalife",
    "picoftheday",
    "beauty",
    "instalike",
    "gf",
    "traveling",
    "instatravel",
    "vsco",
    "tourism",
    "\u0438\u0441\u043f\u0430\u043d\u0438\u044f",
    "travelphoto",
    "vscogood",
    "instafollow",
    "travel",
    "\u0433\u0440\u0430\u043d\u0430\u0434\u0430",
    "amazing",
    "vscocam",
    "followme",
    "photooftheday"
  ],
  "type": "image",
  "location": null,
  "comments": {
    "count": 1
  },
  "filter": "Normal",
  "created_time": "1442825564",
  "link": "https:\/\/instagram.com\/p\/74vm3GOCEn\/",
  "likes": {
    "count": 18
  },
  "images": {
    "low_resolution": {
      "url": "https:\/\/scontent.cdninstagram.com\/hphotos-xap1\/t51.2885-15\/s320x320\/e15\/11934647_531283580370186_1131008999_n.jpg",
      "width": 320,
      "height": 320
    },
    "thumbnail": {
      "url": "https:\/\/scontent.cdninstagram.com\/hphotos-xap1\/t51.2885-15\/s150x150\/e15\/11934647_531283580370186_1131008999_n.jpg",
      "width": 150,
      "height": 150
    },
    "standard_resolution": {
      "url": "https:\/\/scontent.cdninstagram.com\/hphotos-xap1\/t51.2885-15\/e15\/11934647_531283580370186_1131008999_n.jpg",
      "width": 612,
      "height": 612
    }
  },
  "users_in_photo": [

  ],
  "caption": {
    "created_time": "1442825564",
    "text": "#\u0413\u0440\u0430\u043d\u0430\u0434\u0430 #\u0418\u0441\u043f\u0430\u043d\u0438\u044f #photooftheday #picoftheday #instalike #followme #vscogood #vscocam #vsco #instafollow #travel #traveling #instatravel #instalife #tourism #gf #beauty #beautiful #amazing #travelphoto",
    "from": {
      "username": "solotravel_me",
      "profile_picture": "https:\/\/igcdn-photos-h-a.akamaihd.net\/hphotos-ak-xaf1\/t51.2885-19\/11282631_115839268762391_863189534_a.jpg",
      "id": "736938591",
      "full_name": "and"
    },
    "id": "1078821495951073761"
  },
  "user_has_liked": false,
  "id": "1078821489441513767_736938591",
  "user": {
    "username": "solotravel_me",
    "profile_picture": "https:\/\/igcdn-photos-h-a.akamaihd.net\/hphotos-ak-xaf1\/t51.2885-19\/11282631_115839268762391_863189534_a.jpg",
    "id": "736938591",
    "full_name": "and"
  }
}
...

之后我尝试使用 max_id 参数,但我不确定我需要使用哪个 ID 我尝试了照片的 ID,photo_user ID,我什至尝试了时间戳(在某个论坛上发现了这个想法),但每次我只收到前 20 张照片

示例: https://api.instagram.com/v1/users/self/media/recent?access_token=TOKEN&max_id=1078821495951073761

我遇到了空分页对象的同样问题,而帐户实际上有更多照片。

这里只是为了把事情说清楚。这个问题在原问题的评论中得到了回答。

分页对象中没有任何内容,因为该应用程序处于沙盒模式,而处于沙盒模式的应用程序永远不会 returns 超过 20 个帖子(照片)。