Represents a comment on an IG Media object.
You cannot use this node to create comments. To create a comment on a media object, use the IG Media node instead.
GET /{ig-comment-id}?fields={fields}
Query string parameters are optional unless indicated as required.
{fields}
— A comma-separated list of fields you want returned. See Returnable Fields.A User access token from the Facebook User who created the object on which the comment was created, with the following permissions:
instagram_basic
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
hidden
id
like_count
media
replies
text
timestamp
user
(only returned if the user making the query also owns the comment, otherwise, the username
field will be included)username
GET graph.facebook.com/17873440459141021
{ "timestamp": "2017-05-03T16:09:08+0000", "text": "Awesome :)", "id": "17873440459141021" }
POST /{ig-comment-id}?hide={hide}
{hide}
(required) — Set to true
to hide the comment, or false
to show the comment.Comments made by media object owners on their own media objects will always be displayed, even if the comments have been set to 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
A comment can only be deleted by the owner of the object upon which the comment was made, even if the user attempting to delete the comment is the comment's author.
DELETE graph.facebook.com /17873440459141021
{ "success": true }