问题
I'm currently hitting the /tags/tag-name/media/recent end point periodically and saving to my own database some media that match certain criteria. Sometimes, I get a private photo. This means that in my gallery, when I display said images, some of them show up as broken links, because the instagram image server replies 403 forbidden since those images are private.
How can I know which image is private to skip them?
I don't see from the end point response how I can do this.
Thanks!
回答1:
Use client_id
instead of access_token
to make the /tags/tag-name/media/recent
API call, then you should not get any private photos in response.
来源:https://stackoverflow.com/questions/21711879/querying-tags-tag-name-media-recent-endpoint-how-to-avoid-private-photos