Posting a first comment on an Instagram post through the API
A first comment on an Instagram post is posted through the API with POST /<IG_MEDIA_ID>/comments and a message, sent right after media_publish returns the new post's media ID. Meta's publishing calls take no comment of their own, so a scheduler makes this second call once the post is live; with Instagram Login it needs the instagram_business_manage_comments permission.
easyCoexistence publishes Instagram photos, carousels, Reels and Stories with publish_instagram_post, now or scheduled, from Claude, ChatGPT or your own code.
The one parameter POST /<IG_MEDIA_ID>/comments takes: the text of the comment, and it is required.
The media Meta's comments reference rules out when creating a comment.
Hashtags Instagram's Help Center allows on a post, placed in the caption or in the comments.
Hashtags Meta's API reference still allows in one caption, beside 2,200 characters and 20 @ tags.
A comment the media owner posts on its own media, even when it is set to hide=true.
How do you post a comment on your own post through the API?
Send POST /<IG_MEDIA_ID>/comments with the text in message, using the ID of the published post, and Meta answers with the new comment's ID. With Instagram Login the call goes to graph.instagram.com with an Instagram User access token holding instagram_business_basic and instagram_business_manage_comments, the same pair that covers reading, replying to and hiding comments.
POST https://graph.instagram.com/v26.0/<IG_MEDIA_ID>/comments
?message=Recipe%20in%20the%20highlights.%20%23sourdough%20%23bakery
&access_token=<INSTAGRAM_USER_ACCESS_TOKEN>
{
"id": "<IG_COMMENT_ID>"
}When can the first comment be posted?
Once the post is live. Publishing takes two calls, POST /<IG_ID>/media to create a container and POST /<IG_ID>/media_publish to turn it into a post, and only the second returns the media ID that the comments edge needs. A video container publishes once its status_code reads FINISHED, so for a Reel the comment waits for that step too.
Why do accounts post a first comment?
To keep the caption short and put the extras underneath: hashtags, a link, credits or details that would crowd the opening lines. Instagram's Help Center lets hashtags go in the caption or in the comments of a post, and allows up to 5 hashtags on a post. Meta's API reference, for its part, still gives 30 hashtags per caption.
What limits apply to the comment?
Meta's comments reference lists one parameter and one limitation for creating a comment, and its comment reference sets what can change afterwards:
- message: the text of the comment, the only parameter, and required.
- Live video: creating comments on live video media is not supported.
- Changes: hiding is the only update Meta documents for a comment, so a wrong comment is deleted and posted again.
- Deletion: DELETE /<
IG_COMMENT_ID>, available to the owner of the media the comment is on.
How do you add a first comment with easyCoexistence?
From the Instagram app, once the post is live. publish_instagram_post answers with status published and the media_id, but neither it nor the scheduling queue has a first-comment option, and no tool posts a new comment on your own media: the comment tools read, reply to and hide the comments other people leave.
How does it work for a scheduled post?
The same way. easyCoexistence publishes a post given scheduled_at at that time, and list_scheduled_posts shows when it is published; a platform on the Partner API learns it from the post.published event. The first comment is then added in the Instagram app, since Instagram tokens are not handed out for a call of your own.
Common mistakes
- Commenting on the container ID. A container has no edges; the comment goes on the media ID that media_publish returns.
- Moving extra hashtags into the comment. Instagram's Help Center allows up to 5 hashtags on a post and says that with more than 5, the comment won't post.
- Hiding the first comment to tidy the post. Meta always displays comments the media owner posts on its own media, even with hide=true, so delete it instead.
- Firing the comment at the scheduled minute. A Reel can still be processing then, so wait until list_scheduled_posts shows the post as published.
It has no tool for a first comment, which is added in the Instagram app; the comments that follow can be read, replied to and hidden with its comment tools. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
Can I edit the first comment after posting it?
Meta documents no edit for Instagram comments. The media owner can delete it with DELETE /<IG_COMMENT_ID> and post a corrected one.
Can Claude or ChatGPT post the first comment for me?
Not through easyCoexistence today: its comment tools reply to and hide comments, and none posts a new comment on your own post. Add the first comment in the Instagram app once the post is live.
Do hashtags in a comment work like hashtags in the caption?
Instagram's Help Center lets hashtags go in either place and sets its limit per post: up to 5.
How much does easyCoexistence cost for posting to Instagram from an AI agent?
An Instagram account is one connection: US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.
Keep reading
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on