Skip to content

Reference

Facebook

Set up Facebook OAuth for profile data, Pages, and social integrations

Connect your users to Facebook for profile data, Page management, and social integrations via the Meta Graph API.

PropertyValue
Provider IDfacebook
CategorySocial
PKCESupported
Token refreshAutomatic
Redirect URIShown in Developer Portal

Go to the Meta for Developers portal

Navigate to developers.facebook.com/apps and sign in.

Create a new app

Click Create App and select the appropriate use case or app type, then fill in the details.

Configure OAuth redirect URIs

Under Use Cases, find Authentication and Account Creation, click Customize, then Go to Settings. Add the Alter callback URL from the Developer Portal to Valid OAuth Redirect URIs.

Get credentials

Go to Settings > Basic and copy the App ID (Client ID) and App Secret (Client Secret).

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Facebook provider

Go to OAuth Providers > Add Provider > Facebook.

Enter credentials

  • Client ID: Paste your Facebook App ID
  • Client Secret: Paste your Facebook App Secret

Select scopes

Choose the scopes the application needs.

Save

Click Save. The provider is now active.

ScopeDescription
public_profileView the user’s basic profile information
emailView the user’s primary email address
pages_show_listView the list of Pages the user manages
pages_read_engagementRead content (posts, photos, videos) posted by the Page
pages_read_user_contentRead user-generated content on the Page
pages_manage_postsCreate, edit, and delete posts on the user’s Pages
pages_manage_engagementCreate, edit, and delete comments posted on the Page
pages_manage_metadataSubscribe and receive webhooks about activity on the Page
publish_videoPublish live videos to a user’s timeline, group, event, or Page
instagram_basicView the user’s Instagram account profile and media
instagram_content_publishPublish media to the user’s Instagram professional account
instagram_manage_commentsRead and manage comments on the user’s Instagram media
instagram_manage_insightsView analytics and insights for the user’s Instagram account
instagram_manage_messagesRead and send Instagram Direct messages for the professional account
business_managementManage the user’s business assets and settings
  • Some permissions (e.g., pages_manage_posts) require App Review before use in production.
  • See the Facebook Login documentation for more details.

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
page/feed/createsendPOST/{page_id}/feed
page/photos/createsendPOST/{page_id}/photos
post/comments/createsendPOST/{post_id}/comments
node/deletedeleteDELETE/{object_id}
page/subscribed_appsadminPOST/{page_id}/subscribed_apps
node/getreadGET/{object_id}
me/getreadGET/me
me/accountsreadGET/me/accounts
me/permissionsreadGET/me/permissions
debug_tokenreadGET/debug_token
page/feed/listreadGET/{page_id}/feed
page/insightsreadGET/{page_id}/insights
page/postsreadGET/{page_id}/posts
post/comments/listreadGET/{post_id}/comments
post/reactionsreadGET/{post_id}/reactions

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.