Add Comment
add_commentPublish a Page comment on a Facebook post or reply to an existing comment by ID. Optionally attach a local image to the comment.
Instructions
Comment as the Page on a post, or reply to a comment by passing its id.
Optionally attach a local image (photo comment).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object_id": "<object_id>",
"message": "<message>"
},
"name": "add_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page id or exact Page name. Omit to use the default Page (or the Page that owns the given post). | |
| message | Yes | Text content. | |
| object_id | Yes | Graph object id, e.g. '1234567890' or '<pageid>_<postid>'. | |
| image_path | No | Optional absolute path to a local image to attach. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| post_id | No |