MetorialDocs

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

Sign-in method

MethodTypeWhat a person provides
Facebook OAuthOAuthSigns in to Facebook

Facebook OAuth

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

ScopeNameWhat it allows
public_profilePublic ProfileAccess basic public profile information
emailEmailAccess the user's primary email address
user_postsUser PostsAccess posts on the user's timeline
user_photosUser PhotosAccess the user's photos
user_videosUser VideosAccess the user's videos
user_locationUser LocationAccess the user's current city
user_birthdayUser BirthdayAccess the user's birthday
user_linkUser LinkAccess the user's profile link
user_eventsUser EventsAccess the user's events
pages_show_listPages Show ListList Pages the user manages
pages_read_engagementPages Read EngagementRead engagement data for Pages the user manages
pages_manage_postsPages Manage PostsCreate, edit, and delete posts on Pages the user manages
pages_manage_metadataPages Manage MetadataManage metadata of Pages the user manages
pages_read_user_contentPages Read User ContentRead user-generated content on Pages
pages_manage_engagementPages Manage EngagementManage and create engagement on Pages
pages_messagingPages MessagingSend and receive messages as a Page via Messenger
ads_readAds ReadRead ad account data and reports
business_managementBusiness ManagementManage business assets and settings
leads_retrievalLeads RetrievalRetrieve 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:

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

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

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.

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.

Check it worked

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