Comments

This edge allows you to:

Creating

Creating Comments

To create a comment on an individual media object, send a POST request to the /media/comments edge and include the comment text using the message parameter.

If successful, the endpoint will respond with the newly created comment's ID.

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
  /17895695668004550/comments?message=This%20is%20awesome!

Sample Response

{
  "id": "17870913679156914"
}

Reading

Getting Comments

To get comments for an individual media object, send a GET request to the /media/comments edge.

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

Limitations

  • Returns only top-level comments. Replies to comments are not included.
  • Returns a maximum of 50 comments per query.

Sample Request

GET graph.facebook.com
  /17895695668004550/comments

Sample Response

{
  "data": [
    {
      "timestamp": "2017-08-31T19:16:02+0000",
      "text": "This is awesome!",
      "id": "17870913679156914"
    },
    {
      "timestamp": "2017-08-31T18:10:30+0000",
      "text": "*Sniff*",
      "id": "17873440459141021"
    }
  ]
}

Updating

This operation is not supported.

Deleting

This operation is not supported.