Instagram API - Getting feed of private user whom the authorised user follows

╄→尐↘猪︶ㄣ 提交于 2019-12-05 07:04:23

[As instagram changes their api, this tips may not work forever]

I faced same issue and the cause is it happens when the posts are private , even if user access token is passed with endpoints this errors happen.

Solution: just in place of userid use 'self' for private profile. means if a profile has private posts then who connects should be the same person of the profile and other person can not view his/her posts.

Example:

https://api.instagram.com/v1/users/USER_ID/media/recent/?access_token=USER_ACCESS_TOKEN_HERE if this endpoints shows error then use https://api.instagram.com/v1/users/self/media/recent/?access_token=USER_ACCESS_TOKEN_HERE

(just replace 'userid' with 'self')

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!