问题
I am using instagram API for developing my app. In my app , I am allowing user to like others media. For this I am using following url with parameters like mediaId and accessToken.
"https://api.instagram.com/v1/media/%@/likes?access_token=%@",mediaId,accessToken
Problem is Sometime I am getting error "You can't like this media".
If you have any solution then please help. Thanks in advance.
回答1:
It happens when you try to like a media of a private profile, and the access_token (user) you are using to like does not have access to view that profile.
来源:https://stackoverflow.com/questions/23076629/instagram-error-you-can-not-like-this-media