Comment

This node allows you to:

This node's edges allow you to:

Creating

You cannot use this node to create comments. To create a comment on a media object, use the Media node instead.

Reading

Reading a Comment

To read an individual comment's metadata, send a GET request to the /comment node and include any of the following fields:

  • hidden
  • id
  • like_count
  • media
  • text
  • timestamp
  • user (only returned if the user making the query also owns the comment, otherwise, the username field will be included)
  • username

Permissions

A User access token with the following permissions:

  • instagram_basic

If the token is for a User whose Page role was granted via the Business Manager, one of the following permissions is also required:

  • ads_management
  • manage_pages
  • business_management

Sample Request

GET graph.facebook.com
  /17873440459141021

Sample Response

{
  "timestamp": "2017-05-03T16:09:08+0000",
  "text": "Awesome :)",
  "id": "17873440459141021"
}

Updating

Hiding/Unhiding Comments

To hide or unhide an individual comment, send a POST request to the /comment node, and include the hide=true or hide=false parameter.

Permissions

A User access token with the following permissions:

  • instagram_basic
  • instagram_manage_comments

If the token is for a User whose Page role was granted via the Business Manager, one of the following permissions is also required:

  • ads_management
  • manage_pages
  • business_management

Sample Request

POST graph.facebook.com
  /17873440459141021?hide=true

Sample Response

{
  "success": true
}

Deleting

Deleting Comments

To delete an individual comment on an object that you own, send a DELETE request to the /comment node.

Permissions

A User Access Token with the following permissions:

  • instagram_basic
  • instagram_manage_comments

If the token is for a User whose Page role was granted via the Business Manager, one of the following permissions is also required:

  • ads_management
  • manage_pages
  • business_management

Limitations

You can only delete comments made on objects that you own. You cannot delete comments on objects that you do not own, even if you are the comment author.

Sample Request

DELETE graph.facebook.com
  /17873440459141021

Sample Response

{
  "success": true
}