api - What's the equivalent parameter for Instagram MIN_LIKE_ID -


i need iterate through particular user's likes using api below

https://api.instagram.com/v1/users/self/media/liked 

how can skip have read before? there "max_like_id" parameter, need "the newest likes" after particular id. tried "min_like_id", still likes returned.

there no min_like_id endpoint.

you can manually:

  1. save media_id of first photo loaded on api
  2. create function load newest, should api response , iterate thru media objects , compare saved media_id in step 1
  3. if there no match, prepend media list, if there match break out of loop, , update variable saved media_id in step 1 first media_id in step 2

Comments