Log inStart Free Trial
easyCoexistence Official APIs

Editing or deleting Facebook Page posts through the API

A published Facebook Page post is edited with POST /{page-post-id}, sending the fields to change, such as message, and deleted with DELETE /{page-post-id}; both answer with success set to true. They need a Page token with pages_manage_posts, and Meta lets an app edit a Page post only when the post was made with that app.

easyCoexistence publishes a Facebook Page's posts and lists them with list_social_posts, from Claude, ChatGPT or your own code.

Same app

An app can update a Page post only if the post was made using that app.

success: true

Meta's answer to a successful update or deletion of a Page post.

pages_manage_posts

Permission that lets an app create, edit and delete a Page's posts, photos and videos.

80001

Error on updates and deletions when there have been too many calls to the Page account.

Select developers

Meta's Page Post reference says only select developers can delete posts through the API, pointing others to Business Manager.

DELETE /{photo-id}

Deletes a photo; an app can delete photos it published, and a Page management app those on Pages it manages.

How do you edit a published Page post?

Send POST /{page-post-id} with the parameters to change set to their new values; for the text, that is message, which supports emoji. Meta answers with success set to true, and its reference notes that the endpoint supports read-after-write, so the same call can return the updated fields.

Editing a post's text
POST /{page-post-id}
{
  "message": "Doors open at 10 on Saturday, not 9."
}

200 OK
{
  "success": true
}

Which posts can an app edit?

Only those it made. Meta's Pages guide says an app can update a Page post only if the post was made using that app, so posts published through easyCoexistence can be edited through it, while posts written on Facebook itself or in another tool stay outside its reach.

Which fields can an update change?

Meta's Page Post reference lists the update parameters. Besides message, the ones that matter for a published post include:

  • is_hidden and is_pinned, two booleans on the post.
  • is_published and scheduled_publish_time, for a post Meta holds for later.
  • place, privacy, backdated_time and tags.
  • attached_media, with media_fbid entries, the field multi-photo posts are built with.
  • link is not among the parameters listed.

How do you delete a Page post?

Send DELETE /{page-post-id}, with no parameters; Meta answers with success set to true. A photo can also be deleted on its own ID with DELETE /{photo-id}: Meta's photo reference says an app can delete photos it published, and a Page management app can delete a photo published to a Page it manages. Meta's Page Post reference adds a restriction its Pages guide does not mention: only select developers can delete posts through the API, and others can use Business Manager.

Which permissions and tasks do edits and deletions need?

pages_manage_posts, which lets an app create, edit and delete the Page's posts, with its dependencies pages_read_engagement and pages_show_list. Its allowed usage covers updating and deleting a post, photo or video on the Page. Meta's Pages guide asks for a Page token from someone who can perform the CREATE_CONTENT, MANAGE and MODERATE tasks on the Page.

Which errors can edits and deletions return?

Meta's Page Post reference lists these codes for both calls, and updates can also return 210, user not visible, and 104, incorrect signature:

  • 100: invalid parameter.
  • 190: invalid OAuth 2.0 access token.
  • 200: permissions error.
  • 368: the action was deemed abusive or is otherwise disallowed.
  • 80001: too many calls to this Page account; wait a bit and try again.

How do you change a post that has not gone out yet?

Through easyCoexistence's queue, where a post scheduled with publish_facebook_post waits until its time. update_scheduled_post moves it or changes its text while it is still scheduled, and cancel_scheduled_post stops it. To change its photo or video, cancel it and schedule a new post; list_scheduled_posts shows what is waiting.

How do you edit or delete through easyCoexistence?

Not through its tools. easyCoexistence publishes and lists a Page's posts, and none of its tools sends the POST that edits one or the DELETE that removes it, so both are done on Facebook or in Meta Business Suite. list_social_posts returns the Page's recent posts with their IDs.

Common mistakes

  • Editing a post made outside the app. Meta lets an app update only the posts it made, so a post written on Facebook itself is edited there.
  • Using a photo's id as the post's. /{page-id}/photos returns id for the photo and post_id for the post that carries it; send edits to the post_id.
  • Retrying straight after 80001. It means too many calls to the Page account, and Meta's own message says to wait a bit before trying again.
  • Looking for a queued post on the Page. A post scheduled through easyCoexistence stays in its queue until its time, so change or cancel it there rather than on Facebook.
Doing this with EasyCoexistence

A post that is live is edited or deleted on Facebook or in Meta Business Suite, and posts still in the queue change with update_scheduled_post or cancel_scheduled_post. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.

easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.

Frequently asked questions

Which ID do I edit for a photo post?

The post_id. /{page-id}/photos returns id for the photo and post_id for the post that carries it, and edits go to the post_id.

Can I edit a post Meta is holding for a scheduled time?

Yes, if your app scheduled it: POST /{page-post-id} accepts message and scheduled_publish_time while the post waits, and GET /{page-id}/scheduled_posts lists those posts.

How do I find the ID of the post to edit?

list_social_posts returns the Page's recent posts with their IDs, up to 100 per call.

Can the link in a Facebook Page post be changed?

Meta's update parameters for a Page post do not include link, so a new URL takes a new post.

Keep reading

Connect your first channel in two minutes.

No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.

  • 3 days free
  • Cancel any time
  • Official APIs only
  • Monitored 24/7

Verified on