Set up Facebook in Metorial for Claude, ChatGPT and Cursor
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'll 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 with at least one access group
- An account with Facebook for each person who connects
- For the CLI steps: the Metorial 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 | 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.
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.
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.
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
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
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.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Facebook.
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:
Employee: connect Facebook
In the portal
Open Facebook in the catalog
Sign in to your portal and open Facebook. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Facebook sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
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.
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.
Check it worked
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. Needsaction.get_posts: Retrieve posts from a Facebook Page or user timeline.get_page_insights: Retrieve analytics and insights for a Facebook Page. NeedspageId.get_ad_insights: Retrieve ad account information and campaign performance insights. Needsaction.list_pages: List all Facebook Pages that the authenticated user manages.search_facebook: Search for Pages or Places on Facebook. Needsqueryandtype.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. NeedsobjectId.get_post_insights: Retrieve analytics and insights for a Facebook Page post. NeedspostId.
Write tools (3)
send_page_message: Send a message from a Facebook Page to a user via Messenger. NeedsactionandpageId.manage_comments: Read, create, update, delete, or hide comments on a Facebook post or object. NeedsactionandobjectId.publish_content: Publish a post, photo, or video to a Facebook Page. NeedspageId.
Destructive tools (1)
manage_post: Update or delete an existing Facebook post. NeedspostIdandaction.
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, Cursor, Codex and ChatGPT: connect each client to your portal and use Facebook there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Facebook on metorial.com: the integration overview