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:
- save
media_id
of first photo loaded on api - create function load newest, should api response , iterate thru media objects , compare saved
media_id
in step 1 - if there no match, prepend media list, if there match break out of loop, , update variable saved
media_id
in step 1 firstmedia_id
in step 2
Comments
Post a Comment