fb_api_publish_post
Preview, publish, or schedule text, image, or link posts to a Facebook Page via the official Meta Graph API, with dry-run safety enabled by default.
Instructions
Preview (dry_run=True default) or publish/schedule a post to a Facebook Page you manage via Official Meta Graph API.
Args: page_id: Numeric Facebook Page ID. message: Post caption / text. image_path: Optional local path to a photo to publish with the post. link: Optional URL to attach (text/link posts only). scheduled_publish_time: Optional UNIX timestamp (at least 10 minutes in the future) to schedule the post. dry_run: Safety default True previews without publishing; pass False after user confirmation to publish.
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": {
"page_id": "<page_id>",
"message": "<message>"
},
"name": "fb_api_publish_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | No | ||
| dry_run | No | ||
| message | Yes | ||
| page_id | Yes | ||
| image_path | No | ||
| scheduled_publish_time | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |