Instagram错误“您不能喜欢此媒体"? [英] Instagram error "You can not like this media"?
问题描述
我正在使用instagram API开发我的应用程序.在我的应用程序中,我允许用户喜欢其他媒体.为此,我使用以下URL,并使用诸如mediaId和accessToken之类的参数.
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
"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.
推荐答案
当您尝试喜欢私有个人资料的媒体,而您喜欢的access_token(用户)无权查看该个人资料时,会发生这种情况
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.
这篇关于Instagram错误“您不能喜欢此媒体"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!