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

# Facebook

> What agents can do in Facebook at each access level, and how to connect, limit, and disconnect Facebook.

Connect Facebook so your agents can work in your Facebook account. You choose an access level for each account, and Squad refuses any agent action outside that level.

## Access levels

Each Facebook account has an access level: **Read-only**, **Manage pages**, and **Full access**. Squad refuses any agent action outside that level. You can also narrow or block single agents under **Per-agent access**.

| Level                          | The connect window describes this level as         | Actions agents can use |
| ------------------------------ | -------------------------------------------------- | ---------------------- |
| **Read-only**                  | "See your profile, pages, and engagement metrics." | 20 of 44               |
| **Manage pages** (recommended) | "Post on pages, reply to comments, message users." | 41 of 44               |
| **Full access**                | "Full access including ads."                       | 44 of 44               |

**Manage pages** is the recommended level. The connect window selects it for you, and you can choose another level.

The Facebook sign-in page asks you to approve full access to your account. This is expected. Squad does not narrow the sign-in. It checks every agent action against the level you chose, and it refuses actions outside that level.

## What agents can do at each level

Each level opens with a short summary in plain tasks, then lists every action it adds, grouped by what the action works on. You do not need to name actions. Ask in plain words, and the agent searches for the matching action.

<Tip>**Find an action.** Open a level and use your browser's find (Ctrl+F, or Cmd+F on a Mac) with a word from the task or part of a slug. Or ask your agent in plain words, for example "What can you do in my Facebook account?" The agent can search the Facebook actions for you.</Tip>

Each action shows its name, a one-line description where the Facebook action catalog has one, and its slug. The slug is the ID that agents use when they call the action.

<AccordionGroup>
  <Accordion title="Read-only">
    Agents can use 20 of the 44 Facebook actions at this level:

    * View and search pages
    * View posts
    * View comments
    * View messages
    * View reports
    * View conversations
    * View photos
    * View reactions
    * View roles and permissions
    * View users
    * View videos

    All 20 actions at this level:

    | Works on                  | Action                    | What it does                                                                                                                        | Slug                                 |
    | ------------------------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
    | **Comments**              | Get comment               | Retrieves details of a specific Facebook comment.                                                                                   | `FACEBOOK_GET_COMMENT`               |
    |                           | Get comments              | Retrieves comments from a Facebook post or comment (for replies).                                                                   | `FACEBOOK_GET_COMMENTS`              |
    | **Conversations**         | Get page conversations    | Retrieves a list of conversations between users and the Page.                                                                       | `FACEBOOK_GET_PAGE_CONVERSATIONS`    |
    | **Messages**              | Get conversation messages | Retrieves messages from a specific conversation.                                                                                    | `FACEBOOK_GET_CONVERSATION_MESSAGES` |
    |                           | Get message details       | Retrieves details of a specific message sent or received by the Page.                                                               | `FACEBOOK_GET_MESSAGE_DETAILS`       |
    | **Pages**                 | Get page details          | Fetches details about a specific Facebook Page.                                                                                     | `FACEBOOK_GET_PAGE_DETAILS`          |
    |                           | Get user pages            | DEPRECATED: Use FACEBOOK\_LIST\_MANAGED\_PAGES instead.                                                                             | `FACEBOOK_GET_USER_PAGES`            |
    |                           | List managed pages        | Retrieves a list of Facebook Pages that the user manages (not personal profiles), including page details, access tokens, and tasks. | `FACEBOOK_LIST_MANAGED_PAGES`        |
    |                           | Search pages              | Searches for Facebook Pages based on a query string.                                                                                | `FACEBOOK_SEARCH_PAGES`              |
    | **Photos**                | Get page photos           | Retrieves photos from a Facebook Page.                                                                                              | `FACEBOOK_GET_PAGE_PHOTOS`           |
    | **Posts**                 | Get page posts            | Retrieves posts from a Facebook Page.                                                                                               | `FACEBOOK_GET_PAGE_POSTS`            |
    |                           | Get page tagged posts     | Retrieves posts where a Facebook Page is tagged or mentioned.                                                                       | `FACEBOOK_GET_PAGE_TAGGED_POSTS`     |
    |                           | Get post                  | Retrieves details of a specific Facebook post.                                                                                      | `FACEBOOK_GET_POST`                  |
    |                           | Get scheduled posts       | Retrieves scheduled and unpublished posts for a Facebook Page.                                                                      | `FACEBOOK_GET_SCHEDULED_POSTS`       |
    | **Reactions**             | Get post reactions        | Retrieves reactions (like, love, wow, etc.) for a Facebook post.                                                                    | `FACEBOOK_GET_POST_REACTIONS`        |
    | **Reports**               | Get page insights         | Retrieves analytics and insights for a Facebook Page.                                                                               | `FACEBOOK_GET_PAGE_INSIGHTS`         |
    |                           | Get post insights         | Retrieves analytics and insights for a specific Facebook post.                                                                      | `FACEBOOK_GET_POST_INSIGHTS`         |
    | **Roles and permissions** | Get page roles            | Retrieves a list of people and their tasks/roles on a Facebook Page.                                                                | `FACEBOOK_GET_PAGE_ROLES`            |
    | **Users**                 | Get current user          | Validates the access token and retrieves the authenticated user's own profile via /me.                                              | `FACEBOOK_GET_CURRENT_USER`          |
    | **Videos**                | Get page videos           | Retrieves videos from a Facebook Page.                                                                                              | `FACEBOOK_GET_PAGE_VIDEOS`           |
  </Accordion>

  <Accordion title="Manage pages (recommended)">
    Agents can use 41 of the 44 Facebook actions at this level: everything in **Read-only**, plus:

    * Create, update, and publish posts
    * Create and update comments
    * Send messages
    * Create photos
    * Create albums
    * Update settings
    * Update tasks
    * Create videos

    The 21 actions that this level adds to **Read-only**:

    | Works on          | Action                  | What it does                                                                                             | Slug                               |
    | ----------------- | ----------------------- | -------------------------------------------------------------------------------------------------------- | ---------------------------------- |
    | **Albums**        | Create photo album      | Creates a new photo album on a Facebook Page.                                                            | `FACEBOOK_CREATE_PHOTO_ALBUM`      |
    | **Comments**      | Create comment          | Creates a comment on a Facebook post or replies to an existing comment.                                  | `FACEBOOK_CREATE_COMMENT`          |
    |                   | Update comment          | Updates an existing Facebook comment.                                                                    | `FACEBOOK_UPDATE_COMMENT`          |
    | **Messages**      | Mark message seen       | Marks a user's message as seen by the Page, visibly updating the read status in the user's conversation. | `FACEBOOK_MARK_MESSAGE_SEEN`       |
    |                   | Send media message      | Sends a media message (image, video, audio, or file) from the Page to a user.                            | `FACEBOOK_SEND_MEDIA_MESSAGE`      |
    |                   | Send message            | Sends a text message from a Facebook Page (not personal profiles) to a user via Messenger.               | `FACEBOOK_SEND_MESSAGE`            |
    | **Photos**        | Upload photo            | DEPRECATED: Use FACEBOOK\_CREATE\_PHOTO\_POST instead.                                                   | `FACEBOOK_UPLOAD_PHOTO`            |
    |                   | Upload photos batch     | Uploads multiple photo files in batch to a Facebook Page or Album.                                       | `FACEBOOK_UPLOAD_PHOTOS_BATCH`     |
    | **Posts**         | Create multi photo post |                                                                                                          | `FACEBOOK_CREATE_MULTI_PHOTO_POST` |
    |                   | Create photo post       | Creates a photo post on a Facebook Page.                                                                 | `FACEBOOK_CREATE_PHOTO_POST`       |
    |                   | Create post             | Creates a new text or link post on a Facebook Page.                                                      | `FACEBOOK_CREATE_POST`             |
    |                   | Create video post       | Creates a video post on a Facebook Page.                                                                 | `FACEBOOK_CREATE_VIDEO_POST`       |
    |                   | Like post or comment    | Adds a LIKE reaction to a Facebook post or comment.                                                      | `FACEBOOK_LIKE_POST_OR_COMMENT`    |
    |                   | Publish scheduled post  | Publishes a previously scheduled or unpublished Facebook post immediately.                               | `FACEBOOK_PUBLISH_SCHEDULED_POST`  |
    |                   | Reschedule post         | Changes the scheduled publish time of an unpublished Facebook post.                                      | `FACEBOOK_RESCHEDULE_POST`         |
    |                   | Unlike post or comment  | Removes a like from a Facebook post or comment.                                                          | `FACEBOOK_UNLIKE_POST_OR_COMMENT`  |
    |                   | Update post             | Updates an existing Facebook Page post.                                                                  | `FACEBOOK_UPDATE_POST`             |
    | **Settings**      | Update page settings    | Updates settings for a specific Facebook Page.                                                           | `FACEBOOK_UPDATE_PAGE_SETTINGS`    |
    | **Tasks**         | Assign page task        | Assigns tasks/roles to a business-scoped user or system user for a specific Facebook Page.               | `FACEBOOK_ASSIGN_PAGE_TASK`        |
    | **Videos**        | Upload video            | DEPRECATED: Use CreateVideoPost instead.                                                                 | `FACEBOOK_UPLOAD_VIDEO`            |
    | **Other actions** | Toggle typing indicator | Shows or hides the typing indicator for a user in Messenger.                                             | `FACEBOOK_TOGGLE_TYPING_INDICATOR` |
  </Accordion>

  <Accordion title="Full access">
    Agents can use 44 of the 44 Facebook actions at this level: everything in **Manage pages**, plus:

    * Delete comments
    * Delete posts
    * Delete tasks

    The 3 actions that this level adds to **Manage pages**:

    | Works on     | Action           | What it does                                                 | Slug                        |
    | ------------ | ---------------- | ------------------------------------------------------------ | --------------------------- |
    | **Comments** | Delete comment   | Deletes a Facebook comment.                                  | `FACEBOOK_DELETE_COMMENT`   |
    | **Posts**    | Delete post      | Permanently deletes a Facebook Page post.                    | `FACEBOOK_DELETE_POST`      |
    | **Tasks**    | Remove page task | Removes a user's tasks/access from a specific Facebook Page. | `FACEBOOK_REMOVE_PAGE_TASK` |
  </Accordion>
</AccordionGroup>

## Connect Facebook

Before you start:

* You need a Facebook account that you can sign in to.
* Your Squad subscription must be active. Squad does not connect apps while the subscription is not active.

<Steps>
  <Step title="Open Integrations">
    Open **Settings** > **Integrations**.
  </Step>

  <Step title="Add an integration">
    On the **Connected apps** tab, click **+ Add integration**.
  </Step>

  <Step title="Find Facebook">
    Find **Facebook** in the catalog and click it. You can type the name in **Search the catalog…**.
  </Step>

  <Step title="Choose an access level">
    Under **Default scope**, choose an access level. This level applies to every agent.
  </Step>

  <Step title="Click Connect Facebook">
    Click **Connect Facebook**. The Facebook sign-in page opens in a new tab.
  </Step>

  <Step title="Sign in to Facebook">
    Sign in to Facebook and approve the request.
  </Step>
</Steps>

Check that it works: Facebook shows under **YOUR CONNECTIONS**, with a row for the account and its access level.

## Change the access level

1. Under **YOUR CONNECTIONS**, find the Facebook account.
2. Open the account menu (⋯) and click **Manage scope**.
3. Under **Default scope**, choose the new level.
4. Click **Save access**.

The change does not need a new sign-in. Agents get the new level from their next call.

## Set access for one agent

Every agent uses the account's level unless you set something else for it. You can narrow one agent to a lower level, or block it.

1. Under **YOUR CONNECTIONS**, open the account menu (⋯) on the Facebook account.
2. Click **Manage scope**.
3. Under **Per-agent access**, find the agent.
4. Choose the **Default** option to follow the account's level, choose a lower level, or choose **No access**.
5. Click **Save access**.

An agent never gets more than the account's level, even if you choose a higher level for it. Changes apply from the agent's next call. An agent with **No access** does not see the account.

## Use more than one Facebook account

Click **+ Account** on the Facebook card to connect another account. Agents use the primary account unless they are asked to use a specific one.

* After you click **+ Account**, follow the connect steps above.
* Each account has its own access level.
* The first account you connect becomes the primary account. It shows **★ PRIMARY**.
* To change the primary account, open the account menu (⋯) and click **Make primary**.
* To tell accounts apart, open the account menu (⋯) and click **Rename**.

## Reconnect or disconnect

Reconnect when the connection has expired, or when you need to change what the account can reach on the Facebook side:

1. Open the account menu (⋯) and click **Reconnect**.
2. Click **Reauthorize on Facebook**.
3. Sign in to Facebook and approve the request.

Reconnect signs in to the same account again. It does not add a second connection.

Open the account menu (⋯) on the Facebook account and click **Disconnect**. Agents lose access to that account at once.

<Warning>**Disconnect** acts at once, with no confirmation step. If it was the primary account, another connected Facebook account becomes primary.</Warning>

## Costs

Facebook actions do not use Squad credits. Connected apps never use credits. For what does use credits, see [What Squad costs](/docs/costs).

## Troubleshooting

An agent reports that an action is not allowed on this account.

* Cause: the action is outside the account's access level, or outside the level you set for that agent.
* Fix: choose a higher level in **Manage scope**, or change the agent's row under **Per-agent access**.

An agent says it has no access to Facebook, or it does not see the account.

* Cause: the agent is set to **No access** under **Per-agent access**, or the account is not connected.
* Fix: open **Manage scope** and change the agent's row. If the account is missing, connect it again.

Connecting or saving fails with "Your subscription isn't active."

* Cause: your Squad subscription is not active.
* Fix: resubscribe. See [Manage your subscription](/docs/billing).

An agent says the Facebook connection has expired.

* Cause: the sign-in for that account is no longer valid.
* Fix: use **Reconnect** on the account.

## Common questions

<AccordionGroup>
  <Accordion title="Can I limit what agents can do in Facebook?">
    Each Facebook account has an access level: **Read-only**, **Manage pages**, and **Full access**. Squad refuses any agent action outside that level. You can also narrow or block single agents under **Per-agent access**.
  </Accordion>

  <Accordion title="Can I connect more than one Facebook account?">
    Click **+ Account** on the Facebook card to connect another account. Agents use the primary account unless they are asked to use a specific one.
  </Accordion>

  <Accordion title="How do I disconnect Facebook?">
    Open the account menu (⋯) on the Facebook account and click **Disconnect**. Agents lose access to that account at once.
  </Accordion>
</AccordionGroup>

## Related pages

<CardGroup cols={2}>
  <Card title="Connect apps" icon="plug" href="/docs/integrations" />

  <Card title="Add an MCP server or an API key" icon="server" href="/docs/custom-integrations">
    Use this when an action you need is not in this app.
  </Card>
</CardGroup>
