Portal Community

comment

Adds a comment to a post via Graph API POST /{postId}/comments.

FieldTypeRequiredDescription
postIdtext✓ YesTarget Facebook post ID.
messagetext✓ YesComment body text (max 8,000 chars).

Example response:

{
  "commentId": "987654321_111",
  "message": "Thanks for reaching out!",
  "createdTime": "2026-07-29T12:00:00.0000000Z"
}

getComments

Lists comments on a post with cursor pagination.

FieldTypeRequiredDescription
postIdtext✓ YesTarget Facebook post ID.
limitintNoPage size. Default 25.
aftertextNoCursor from a previous call's nextCursor.

Example response:

{
  "comments": "{ \"data\": [ { \"id\": \"...\", \"message\": \"...\", \"from\": {...}, \"created_time\": \"...\" } ] }",
  "nextCursor": "QVFI...",
  "count": 12
}
Fields requested: id,message,from,created_timecomments is the raw Graph JSON response, same pattern as page.getFeed.

update

Updates a post's message via Graph API POST /{postId}?_method=PATCH.

FieldTypeRequiredDescription
postIdtext✓ YesTarget Facebook post ID.
messagetext✓ YesNew post body text, replacing the existing message.

Example response:

{
  "postId": "123456789_987654321",
  "updatedTime": "2026-07-29T12:05:00.0000000Z",
  "operationSuccess": true
}
Only the message is editable: this operation replaces the post's text; it cannot change an attached link, picture, or caption after publication. Delete and repost if the attachment itself needs to change.