Represents a comment on an Instagram media object.
If you are migrating from Marketing API Instagram Ads endpoints to Instagram Platform endpoints, be aware that some field names are different.
Introducing the following fields:
legacy_instagram_comment_id
The following fields are not supported:
comment_type
mentioned_instagram_users
Instagram API with Instagram Login | Instagram API with Facebook Login | |
---|---|---|
Access Tokens |
| |
Host URL |
|
|
Login Type | Business Login for Instagram | Facebook Login for Business |
Permissions |
|
If the app user was granted a role via the Business Manager on the Page connected to the targeted IG User, you will also need one of:
|
This operation is not supported.
GET <HOST_URL>/<IG_COMMENT_ID>?fields=<LIST_OF_FIELDS>
Get fields and edges on an IG Comment.
GET https://<HOST_URL>/<API_VERSION>/<IG_COMMENT_ID> ?fields=<LIST_OF_FIELDS> &access_token=<ACCESS_TOKEN>
Placeholder | Value |
---|---|
| API version. |
| API version. |
| Required. IG Comment ID. |
Key | Placeholder | Value |
---|---|---|
|
| Required. App user's User access token. |
|
| Comma-separated list of IG Comment fields you want returned for each IG Comment in the result set. |
Field Name | Description |
---|---|
| An object containing:
|
| Indicates if comment has been hidden ( |
| IG Comment ID. |
| Number of likes on the IG Comment. |
| The ID for Instagram comment that was created for Marketing API endpoints for v21.0 and older. |
| An object containing: |
| ID of the parent IG Comment if this comment was created on another IG Comment (i.e. a reply to another comment. |
| A list of replies (IG Comments) made on the IG Comment. |
| IG Comment text. |
| ISO 8601 formatted timestamp indicating when IG Comment was created. Example: |
| ID of IG User who created the IG Comment. Only returned if the app user created the IG Comment, otherwise |
| Username of Instagram user who created the IG Comment. Starting August 27, 2024, the |
Edge | Description |
---|---|
Get a list of IG Comments on the IG Comment; Create an IG Comment on an IG Comment. |
A JSON-formatted object containing default and requested fields and edges.
{ "<FIELD>":"<VALUE>", ... }
curl -i -X GET \
"https://graph.instagram.com/v22.0
/17881770991003328?fields=hidden%2Cmedia%2Ctimestamp&access_token=EAAOc..."
{ "hidden": false, "media": { "id": "17856134461174448" }, "timestamp": "2017-05-19T23:27:28+0000", "id": "17881770991003328" }
POST <HOST_URL>/<IG_COMMENT_ID>?hide=<BOOLEAN>
hide
(required) — Set to true
to hide the comment, or false
to show the comment.hide=true
.A user access token from the user who owns the media object that was commented on.
Hiding a comment:
POST graph.instagram.com /17873440459141021?hide=true
{ "success": true }
DELETE <HOST_URL>/<IG_COMMENT_ID>
A User access token from a User who created the comment.
DELETE graph.instagram.com /17873440459141021
{ "success": true }