PubNio calls Instagram’s POST /{ig-media-id}/comments (IGMedia.comments) to post a comment under an Instagram post.
How PubNio calls it
- First comments: a post created with
POST /api/v1/postsor sent withPOST /api/v1/posts/{postId}/publishthat carries a first comment gets it after the post publishes. - Comments:
POST /api/v1/commentscomments on or replies to a provider post through the same call. - PubNio sends the text as
messageand keeps the returned comment ID as the receipt. - Only a non-transient error whose code PubNio’s catalog lists as a publish refusal fails the comment; a lost response or an unrecognized refusal leaves it uncertain rather than sending it twice.
- A story never gets a first comment; a feed post, Reel, or carousel does. On a Facebook Login account the first comment goes out with the signed-in person’s user token; other sign-in methods reuse the token the post was published with.
Scopes
- The pinned spec names no scope. See Instagram scopes and permissions.
- Before a first comment goes out and before an agent’s comment goes out, PubNio checks that the account granted the scopes for its sign-in method (Instagram Login:
instagram_business_manage_comments; Facebook Login:instagram_manage_comments; Unified Login:instagram_manage_comments).
Errors
Error pages that name this call, by what a publish write that returns the code does:
Spec and changes
IGMedia.comments in the pinned spec, revision 5c1fa8a1653722b402133f033fcc321d67981bbd.
Refreshed by hand: no weekly change record.
Limits
- PubNio does not edit or delete a comment it posted.