[英]Api to post a comment in instagram using instagram gem?
I have tried by using the following code, 我尝试使用以下代码,
client = Instagram.client(:access_token => "My_Access_Token")
result = client.create_media_comment("Media_Id", "Comment")
but i'm getting the following error, 但我遇到以下错误,
POST https://api.instagram.com/v1/media/Media_Id/comments.json: 400: Please visit http://bit.ly/instacomments for commenting access
How can i resolve this? 我该如何解决?
您应该传递要在其上创建评论的Instagram媒体的实际ID,而不是“ Media_Id”字符串。
Your code is correct (otherwise you won't get that error). 您的代码是正确的(否则您不会收到该错误)。
You need to go to http://bit.ly/instacomments and ask for commenting permission. 您需要转到http://bit.ly/instacomments并征求评论权限。 Don't expect a reply anytime soon though, I've been waiting for a reply over a month, and seen people getting replies for that after three or four months.
不过,不要指望很快得到答复,我一直在等待一个月以上的答复,并且看到人们在三四个月后就收到了答复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.