Post Operations
resource: post — comment on, read comments from, and update an individual post
comment
Adds a comment to a post via Graph API POST /{postId}/comments.
| Field | Type | Required | Description |
|---|---|---|---|
postId | text | ✓ Yes | Target Facebook post ID. |
message | text | ✓ Yes | Comment 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.
| Field | Type | Required | Description |
|---|---|---|---|
postId | text | ✓ Yes | Target Facebook post ID. |
limit | int | No | Page size. Default 25. |
after | text | No | Cursor 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_time — comments is
the raw Graph JSON response, same pattern as page.getFeed.
update
Updates a post's message via Graph API POST /{postId}?_method=PATCH.
| Field | Type | Required | Description |
|---|---|---|---|
postId | text | ✓ Yes | Target Facebook post ID. |
message | text | ✓ Yes | New 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.