---
title: "Instagram create comment API: POST /{ig-media-id}/comments"
description: "When PubNio calls Instagram's create comment request, POST /{ig-media-id}/comments: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram create comment API: POST /{ig-media-id}/comments

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/posts`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts) or sent with [`POST /api/v1/posts/{postId}/publish`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/publish) that carries a first comment gets it after the post publishes.
- Comments: [`POST /api/v1/comments`](https://pubnio.com/api/v1/docs#tag/comments/POST/api/v1/comments) comments on or replies to a provider post through the same call.
- PubNio sends the text as `message` and 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](https://pubnio.com/docs/providers/instagram/scopes/).
- 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:

- Target fails: [10](https://pubnio.com/docs/errors/instagram/10/), [100](https://pubnio.com/docs/errors/instagram/100/), [190](https://pubnio.com/docs/errors/instagram/190/), [200](https://pubnio.com/docs/errors/instagram/200/)

## 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.

## Sources

- [Meta facebook-business-sdk-codegen API specs](https://github.com/facebook/facebook-business-sdk-codegen/tree/5c1fa8a1653722b402133f033fcc321d67981bbd)

## Related

- [Provider API operations PubNio calls](https://pubnio.com/docs/providers/operations/)
- [Instagram rate limits and quota](https://pubnio.com/docs/providers/instagram/quota/)

Source: https://pubnio.com/docs/providers/instagram/operations/ig-media-comments/index.mdx
