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

# Post to Facebook

> What a Facebook Page takes through the API: feed posts, links, Reels and Stories, media limits, first comments, deletes, comments and analytics.

A Facebook account is a Page, with `platform` `facebook`. It posts to the Page's feed, as a Reel, or as a Story.

## What you can post

`settings.post_type` picks the kind of post:

| `post_type` | What goes out |
| - | - |
| `POST` (the default) | A feed post: text, a link, up to 10 photos, or one video. |
| `REELS` | A Reel, when the post has a video. Without a video it goes to the feed. |
| `STORIES` | A Story with one photo or one video. The post's text isn't shown on a Story. |

A Story needs one photo or one video. A Story without media is saved, but fails when it's sent.

## Settings

Every key is optional. [Create a post](https://docs.postsyncer.com/api-reference/posts/create.md#platform-specific-settings) has the full list.

| Key | What it does |
| - | - |
| `post_type` | `POST`, `REELS` or `STORIES`, as above. |
| `title` | Facebook's own text, instead of the post's text. |
| `link` | A link to attach. Used only on a post without media. |
| `media` | This account's own media library ids, instead of the post's media. |

## Text

The text takes 2,200 characters. PostSyncer cuts a longer text to 2,200 when it's sent.

## Media

| | Limit |
| - | - |
| Feed post | Up to 10 photos, or one video |
| Photo | Up to 10 MB |
| Feed video | Up to 4 GB |
| Reel | 3 to 90 seconds, up to 100 MB |
| Story | One photo, or a video of 3 to 60 seconds, up to 100 MB |
| Picture types | JPG, PNG, GIF, WebP |
| Video types | MP4, MOV, WebM |

* Photos and a video can't go in the same post.
* A Reel or Story video that isn't MP4, or is outside Facebook's limits, such as smaller than 540 × 960, outside 24 to 60 frames a second, or over 25 Mbps, is re-encoded to MP4 before it's sent. A feed video goes as it is. Its length can't be changed: a Reel or Story of the wrong length is refused.
* Set a video's cover with `cover_image` on the first item: a `thumbnail` picture. See [Video covers](https://docs.postsyncer.com/guides/media.md#video-covers).

## More than one item and first comments

* Facebook has no threads. The items are joined into one text, with blank lines between them.
* A first comment (`is_first_comment: true`) is a comment under the post, `first_comment_delay` minutes after it goes out (1 when you leave it out). It can carry one photo or GIF, no video.

## Delete a post

Deleting the post in PostSyncer asks Facebook to delete it. [Test safely](https://docs.postsyncer.com/test-safely.md#what-cant-be-undone) says what happens when Facebook refuses.

## Comments

* PostSyncer reads comments an hour after the post goes out, every 6 hours for its first day, then once a day until it's 7 days old, and whenever you ask with [Sync comments](https://docs.postsyncer.com/api-reference/comments/sync.md). Facebook can also send new comments as they're written, so some show up sooner. Comments on Stories aren't read.
* Replies go out from the Page. A reply can carry one photo or GIF: only the first file is sent.
* Hide works, and `"hidden": false` shows a comment again.
* Delete works: the comment is deleted on Facebook.
* Facebook doesn't always say who wrote a comment. Then `author_name` is `Facebook user`.

## Analytics

Facebook gives `impressions`, `likes`, `comments`, `shares`, `clicks` and `reach`. See [Read analytics](https://docs.postsyncer.com/guides/analytics.md).

## Example

A draft that posts a link on one Page, and a Reel of its own video on another:

```json theme={null}
{
  "workspace_id": 4815,
  "schedule_type": "draft",
  "content": [
    { "text": "Our spring menu is up. The lavender oat latte is back." }
  ],
  "accounts": [
    { "id": 16237, "settings": { "link": "https://haldencoffee.example/menu" } },
    { "id": 16238, "settings": { "post_type": "REELS", "media": [5122] } }
  ]
}
```

## Related

> [card] [Instagram](https://docs.postsyncer.com/platforms/instagram.md)
>
> Feed posts, Reels and Stories on Instagram.

> [card] [Compare the 12 networks](https://docs.postsyncer.com/platforms/overview.md)
>
> How Facebook differs from the other networks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.