M
M
Mr_Sinister2014-11-24 00:27:57
API
Mr_Sinister, 2014-11-24 00:27:57

Instagram API. Why aren't comments posted?

I'm writing an Instagram API wrapper for .NET. During testing, it was noticed that Instagram completely refuses to publish comments through the API. The application is registered, the user is authorized, the token is working, there are "comments" rights, everything was done according to the official documentation, the request is made using the POST method (media_id inside the url, other parameters in the request body). Likes and subscriptions work, but comments do not. Passing the signature in the request header does not help.
Maybe someone had such a problem? Share your solution please.
PS The method code is attached:

public static bool CommentSend(string mediaid, string text, string accessToken, WebProxy proxy = null)
        {
            string url = Wrapper.ApiBaseUrl + "media/" + mediaid + "/comments";
            NameValueCollection post = new NameValueCollection {
                    { "text", text },
                    { "access_token", accessToken } };
            string json = Network.POST(url, post, proxy);
            if (string.IsNullOrEmpty(json))
                return false;

            InstagramResponse<Comment> result = Serializer.DeserializeObject<InstagramResponse<Comment>>(json);
            
            return result.meta.code == "200";
        }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2014-11-24
@Mr_Sinister

To get permission to post comments via the SDK, you need to fill out a form, track the link to it (it is present in the API response when you try to post a comment).
Before submitting a request, please carefully read your application's community compliance here instagram.com/developer/endpoints/comments/#post_m...
Our company has been through the process of gaining access to this ENDPOINT and is listed instagram.com/developer/business/# (MarketMeSuite), so I'm not talking from the ceiling. After filling out the form, you have to wait, usually this procedure takes a lot of time (months), we got it faster because there was some acquaintance of the leader in Instagram itself, and then, it took several weeks.
Moreover, your interface must ensure that the comment is pre-filtered for compliance with Instagram requirements (described in the documentation), otherwise your request will not be approved.
Instagram has a very strict policy in this regard and they do not give such access to anyone who meets or crosses.
I recommend to implement the application, launch it, show that the comments are really important, necessary and fully comply with the company's policy, then there is a chance.
If you're making a spam app, then forget about comments forever.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question