@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 04:45 UTC

next
md 2.5 KB

How do I set up custom OAuth credentials for Meta (Facebook)?

Use your own Meta app when you want users to see your app's name on the consent screen and control the credentials yourself.

Create the Meta app

  1. Sign in to Meta for Developers and register as a developer if you haven't. Your app must be linked to a business portfolio.
  2. Click Create App. Enter the app details, select the use cases your workflow needs, and on the business step select your business portfolio. Complete the remaining fields and create the app.

Meta for Developers Apps page with the Create App button

Meta Create an app business step for choosing a business portfolio 3. In App settings > Basic, copy the App ID (client ID) and App Secret (client secret).

Meta App settings Basic page with App ID and App secret 4. Add https://backend.composio.dev/api/v1/auth-apps/add to the app's OAuth redirect allow list (in App settings > Advanced, or Valid OAuth Redirect URIs in the Facebook Login settings). It must exactly match the oauth_redirect_uri field in your Composio auth config. 5. Publish the app.

Create the auth config in Composio

  1. In the Composio dashboard, go to Auth Configs, click Create Auth Config, and select Facebook.
  2. Keep the authentication type as OAuth2 and choose Use your own developer authentication.

Use your own developer credentials toggle turned on in the Facebook auth config form 3. Paste the App ID as the Client ID and the App Secret as the Client Secret, then click Create Facebook Auth Config. 4. Click Connect Account, approve access in Facebook, and confirm the account shows as Active.

See Custom auth configs for the general flow.

Scopes

The default auth config requests public_profile, email, business_management, pages_show_list, pages_read_engagement, pages_manage_posts, pages_manage_engagement, pages_read_user_content, pages_manage_metadata, pages_messaging, and read_insights. Edit the Scopes field on the auth config to request only what you use. Meta requires App Review before people without a role on your app can grant most of these permissions.