> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Facebook in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/meta-facebook
Last updated: 2026-11-24

Share Facebook with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 13 tools (9 read-only).

---

To give your team Facebook in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Facebook integration in a Metorial portal, and each person signs in to Facebook with their own account. Agents can manage Facebook Pages, publish posts, photos, videos, and links to Pages. The integration has 13 tools, 9 read-only, 3 write and 1 destructive, plus 3 triggers.

**What you will learn**

- How an admin shares Facebook in a portal and how each person connects
- The 19 OAuth scopes Facebook can request, and what each one allows
- How to keep the 9 read-only tools and reject the other 4

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Facebook for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **Facebook OAuth** | OAuth | Signs in to Facebook |

### Facebook OAuth

People sign in to Facebook and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `public_profile` | Public Profile | Access basic public profile information |
| `email` | Email | Access the user's primary email address |
| `user_posts` | User Posts | Access posts on the user's timeline |
| `user_photos` | User Photos | Access the user's photos |
| `user_videos` | User Videos | Access the user's videos |
| `user_location` | User Location | Access the user's current city |
| `user_birthday` | User Birthday | Access the user's birthday |
| `user_link` | User Link | Access the user's profile link |
| `user_events` | User Events | Access the user's events |
| `pages_show_list` | Pages Show List | List Pages the user manages |
| `pages_read_engagement` | Pages Read Engagement | Read engagement data for Pages the user manages |
| `pages_manage_posts` | Pages Manage Posts | Create, edit, and delete posts on Pages the user manages |
| `pages_manage_metadata` | Pages Manage Metadata | Manage metadata of Pages the user manages |
| `pages_read_user_content` | Pages Read User Content | Read user-generated content on Pages |
| `pages_manage_engagement` | Pages Manage Engagement | Manage and create engagement on Pages |
| `pages_messaging` | Pages Messaging | Send and receive messages as a Page via Messenger |
| `ads_read` | Ads Read | Read ad account data and reports |
| `business_management` | Business Management | Manage business assets and settings |
| `leads_retrieval` | Leads Retrieval | Retrieve leads from Lead Ads forms |

### Setup settings

Setup also asks for:

- `apiVersion` (optional): Facebook Graph API version (e.g. v25.0)

## Use your own Facebook OAuth app

With your own OAuth app, people see your company's name on the Facebook consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose Facebook and copy the **Redirect URI**.

2. **Register the app with Facebook**

   Create an OAuth app or client in Facebook and add the redirect URI from Metorial as its redirect or callback URL.

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the Facebook integration.

## Admin: share Facebook in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Facebook. For how members connect, choose **Each person connects**, so everyone signs in to Facebook as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Facebook.

4. **Choose who gets it**

   Add the access groups that should see Facebook. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Facebook integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search facebook
```

## Employee: connect Facebook

### In the portal

1. **Open Facebook in the catalog**

   Sign in to your portal and open Facebook. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Facebook sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search facebook
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Facebook connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list facebook
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 9 read-only tools, such as `get_leads` and `get_posts`, and lose the 3 write tools, such as `manage_comments` or `publish_content`, and the destructive tool `manage_post`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list facebook
metorial tools <integration-id>
metorial call <integration-id> list_pages -d '{}'
```

`metorial tools` lists the 13 tools, minus any you rejected. `list_pages` takes no input. It lists all Facebook Pages that the authenticated user manages.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (9)

- `get_leads`: Retrieve leads from Facebook Lead Ad forms. Needs `action`.
- `get_posts`: Retrieve posts from a Facebook Page or user timeline.
- `get_page_insights`: Retrieve analytics and insights for a Facebook Page. Needs `pageId`.
- `get_ad_insights`: Retrieve ad account information and campaign performance insights. Needs `action`.
- `list_pages`: List all Facebook Pages that the authenticated user manages.
- `search_facebook`: Search for Pages or Places on Facebook. Needs `query` and `type`.
- `get_user_profile`: Retrieve a Facebook user's profile information including name, email, birthday, location, and profile picture.
- `get_reactions`: List visible Facebook reactions for a post, comment, photo, video, or other object that supports the Graph API reactions edge. Needs `objectId`.
- `get_post_insights`: Retrieve analytics and insights for a Facebook Page post. Needs `postId`.

### Write tools (3)

- `send_page_message`: Send a message from a Facebook Page to a user via Messenger. Needs `action` and `pageId`.
- `manage_comments`: Read, create, update, delete, or hide comments on a Facebook post or object. Needs `action` and `objectId`.
- `publish_content`: Publish a post, photo, or video to a Facebook Page. Needs `pageId`.

### Destructive tools (1)

- `manage_post`: Update or delete an existing Facebook post. Needs `postId` and `action`.

## Triggers

Facebook has 3 triggers, which fire on events in Facebook:

- `new_lead`: [Polling fallback] Polls Facebook Lead Ad forms for new lead submissions.
- `page_webhook`: Receives real-time webhook notifications for Facebook Page events including feed changes (posts, comments, reactions), messages, lead generation, and mentions.
- `new_page_post`: [Polling fallback] Polls a Facebook Page for new posts.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Facebook there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Facebook on metorial.com](https://metorial.com/integrations/meta-facebook): the integration overview