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

# Facebook

> Connect your Facebook pages to TryPost

# Facebook

TryPost supports posting to Facebook pages.

## Connect your account

1. Go to **Accounts** in the TryPost dashboard
2. Click **Connect Facebook**
3. Authorize TryPost on Facebook
4. Select the page you want to manage. If you administer only one, TryPost connects it without asking. To add another page, connect Facebook again and pick a different one.

## Supported content types

| Type | Aspect ratio | Description |
| - | - | - |
| **Post** | — | Text with up to 10 images or 1 video |
| **Reel** | 9:16 | Short-form vertical video |
| **Story** | 9:16 | Temporary content (24 hours) |

## Media limits

| `content_type` | Image | Video | Duration | Format |
| - | - | - | - | - |
| `facebook_post` | 4 MB | 1 GB | 240 minutes | Feed photos cropped to JPEG. Video MP4 or MOV |
| `facebook_reel` | — | 1 GB | 90 seconds | MP4 recommended |
| `facebook_story` | — | 1 GB | 60 seconds | MP4 recommended |

Official specs: [Reels](https://developers.facebook.com/docs/video-api/guides/reels-publishing/), [Stories](https://developers.facebook.com/docs/page-stories-api/), [Video errors](https://developers.facebook.com/docs/video-api/reference/error-codes/). Full catalog: [Media](/knowledge-base/media).

## OAuth scopes

`public_profile`, `pages_show_list`, `pages_read_engagement`, `pages_manage_posts`, `read_insights`

The `read_insights` scope powers per-post and per-page metrics in **Analytics**.

A Facebook Page can be a [repurpose](/knowledge-base/repurposes) source. TryPost watches it for new Reels, videos, or Stories you publish outside TryPost and republishes them to the destinations you pick.

## Self-hosting setup

<Accordion title="Configure Facebook API credentials">
  1. Go to [Meta for Developers](https://developers.facebook.com/) and create an app
  2. Add the **Facebook Login** product
  3. Set the redirect URL to `{APP_URL}/accounts/facebook/callback`
  4. Request permissions: `public_profile`, `pages_show_list`, `pages_read_engagement`, `pages_manage_posts`, `read_insights`
  5. Add to your `.env`:

  ```env theme={null}
  FACEBOOK_CLIENT_ID=your_app_id
  FACEBOOK_CLIENT_SECRET=your_app_secret
  FACEBOOK_CLIENT_REDIRECT="${APP_URL}/accounts/facebook/callback"
  ```
</Accordion>


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