Represents a comment on an Instagram media object .
Host URL
graph.instagram.com
graph.facebook.com
Login Type
Business Login for Instagram
Facebook Login for Business
instagram_business_basic
instagram_business_manage_comments
instagram_basic
instagram_manage_comments
pages_read_engagement
pages_show_list
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:
ads_management
business_management
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. |
from
An object containing:
id
— The Instagram-scoped ID (IGSID)
of the Instagram user who created the IG Comment.username
— Username of the Instagram user who created the IG Comment. hidden
Indicates if comment has been hidden ( true
) or not ( false
).
id
IG Comment ID.
like_count
Number of likes on the IG Comment.
media
parent_id
ID of the parent IG Comment if this comment was created on another IG Comment (i.e. a reply to another comment.
replies
A list of replies (IG Comments) made on the IG Comment.
text
IG Comment text.
timestamp
ISO 8601 formatted timestamp indicating when IG Comment was created.
Example: 2017-05-19T23:27:28+0000
.
user
ID of IG User who created the IG Comment. Only returned if the app user created the IG Comment, otherwise username
will be returned instead.
username
Username of Instagram user who created the IG Comment.
Starting August 27, 2024, the instagram_manage_comments
permission (if your app uses Facebook login) and instagram_business_manage_comments
permission (if your app uses Instagram login) will be required to access the username
field of an Instagram user who commented on media of an app user's Instagram professional account.
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/ v21.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 }