Update Post
facebook_update_postManage Facebook Page posts the app created: edit message, hide/pin, publish drafts or scheduled posts immediately, or move the publish time. Dry-run previews by default; apply writes only when confirmed.
Instructions
Edit a Page post the app itself created, or move it through the scheduled-post lifecycle. action:"edit" changes message/is_hidden/is_pinned; "publish_now" publishes a draft or scheduled post immediately; "reschedule" moves the publish time; "cancel_schedule" is not a Graph transition and is answered with the delete path to use instead. Dry run by default; an edit OVERWRITES the previous text, which Graph does not keep.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Set true to actually perform the write. Omitted or false ⇒ the server decides from its configured write mode: usually a dry run that returns a plan preview and changes nothing, but a server (or package) configured apply-first performs the write. To be certain nothing happens, read the result: a dry run always reports the plan and says the write was NOT performed. | |
| action | Yes | edit ⇒ change content (needs at least one of message, is_hidden, is_pinned). publish_now ⇒ publish a draft/scheduled post immediately, no other fields. reschedule ⇒ move the publish time, needs scheduled_publish_time and no content fields. cancel_schedule ⇒ NOT supported by Graph; the call explains that removing a scheduled post means deleting it with facebook_delete_post. | |
| message | No | Replacement post text (action:"edit" only). This REPLACES the old text; the previous version is not recoverable through the API. | |
| plan_id | No | The `planId` returned by a preceding dry-run preview of this same tool. Required for irreversible and spend-tier writes; plans expire a few minutes after they are created. | |
| post_id | Yes | The post ID, normally "{page-id}_{post-id}". Only posts this same app created can be edited or deleted — a post made in the Facebook UI or by another app is not addressable here. | |
| profile | No | Page profile key (e.g. "brand-a") or a raw Page ID. Omitted ⇒ the default Page (FB_PAGE_ID). | |
| is_hidden | No | action:"edit" only. true ⇒ hide the post from the Page timeline without deleting it. | |
| is_pinned | No | action:"edit" only. true ⇒ pin the post to the top of the Page. | |
| page_timezone | No | IANA timezone name of the Page (e.g. "Europe/Sofia"), used only to echo a scheduled instant in Page-local time next to UTC. Omitted ⇒ the server reads the Page's own timezone; if that read fails the echo is UTC-only. | |
| scheduled_publish_time | No | action:"reschedule" only. ISO-8601 WITH an explicit offset. Must be more than 10 minutes and at most 75 days ahead, and at most 29 days after the post was originally created. |