> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Post

> Updates an existing Facebook Page post: edit the text, reschedule a scheduled post, or publish a scheduled post immediately

Updates an existing Facebook Page post: edit the text, reschedule a scheduled post, or publish a scheduled post immediately. Media cannot be changed.

|                       |                        |
| --------------------- | ---------------------- |
| **App**               | Facebook               |
| **Operation ID**      | `facebook_update_post` |
| **Type**              | Action                 |
| **Connection**        | `facebook` (required)  |
| **Credits per run**   | 1                      |
| **Requires approval** | Yes (write operation)  |

## Inputs

| Field                    | Type                        | Required | Default | Description                                                                                                                                                                                                                                                    |
| ------------------------ | --------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `page`                   | string or SelectItem        | Yes      | -       | Select the Facebook Page the post belongs to, ask the user for it if not provided                                                                                                                                                                              |
| `post_id`                | string                      | No       | -       | ID of the post to update, in the pageid\_postid format returned by facebook\_list\_posts and facebook\_publish\_post. The post's media cannot be changed, only its text and schedule.                                                                          |
| `message`                | string                      | No       | -       | New text for the post. Leave empty to keep the current text.                                                                                                                                                                                                   |
| `scheduled_publish_time` | string or integer or number | No       | -       | New publish time for a SCHEDULED post (reschedule). Accepts a unix timestamp in seconds, 'YYYY-MM-DD HH:MM' interpreted as UTC, or ISO 8601 with a timezone offset. Must be at least 10 minutes in the future. Only works on posts that are not yet published. |
| `publish_now`            | boolean                     | No       | -       | Set to True to publish a SCHEDULED post immediately instead of waiting for its scheduled time. Cannot be combined with scheduled\_publish\_time.                                                                                                               |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `Dict`

Returns the updated post details and which fields were changed.

**Fields**: `post_id`, `post_url`, `page_id`, `page_name`, `updated`, `status`

**Example**:

```json theme={"dark"}
{
  "post_id": "1234567890_9876543210",
  "post_url": "https://www.facebook.com/1234567890_9876543210",
  "page_id": "1234567890",
  "page_name": "My Page",
  "updated": [
    "message"
  ],
  "status": "updated"
}
```
