> ## 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

## 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)         |

## 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**.

## 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>
