Represents a comment on an IG Media.
This operation is not supported.
GET /{ig-comment-id}?fields={fields}
Get fields and edges on an IG Comment.
Type | Requirement |
---|---|
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: |
GET https://graph.facebook.com/{api-version}/{ig-comment-id} ?fields={fields} &access_token={access-token}
Placeholder | Value |
---|---|
| 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. |
| 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. |
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.facebook.com/v17.0
/17881770991003328?fields=hidden%2Cmedia%2Ctimestamp&access_token=EAAOc..."
{ "hidden": false, "media": { "id": "17856134461174448" }, "timestamp": "2017-05-19T23:27:28+0000", "id": "17881770991003328" }
POST /{ig-comment-id}?hide={hide}
{hide}
(required) — Set to true
to hide the comment, or false
to show the comment.hide=true
.A User access token from a Facebook User who created the comment, with the following permissions:
instagram_basic
instagram_manage_comments
pages_show_list
pages_read_engagement
If the token is from a User whose Page role was granted via the Business Manager, one of the following permissions is also required:
ads_management
pages_read_engagement
business_management
Hiding a comment:
POST graph.facebook.com /17873440459141021?hide=true
{ "success": true }
DELETE /{ig-comment-id}
A User access token from a User who created the comment, with the following permissions:
instagram_basic
instagram_manage_comments
If the token is from a User whose Page role was granted via the Business Manager, one of the following permissions is also required:
ads_management
pages_read_engagement
business_management
DELETE graph.facebook.com /17873440459141021
{ "success": true }