Skip to content

Integrations

Facebook

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

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

PropertyValue
Provider IDfacebook
CategorySocial
PKCESupported
Token refreshNot supported — Meta issues no refresh token; users reconnect when the access token expires
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, enter the app name and contact email, then add the Authenticate and request data from users with Facebook Login use case (or another use case that includes Facebook Login).

Configure OAuth redirect URIs

In the app’s left menu open Facebook Login (shown as Facebook Login for Business on business apps) > Settings. Under Client OAuth settings, add the Alter callback URL from the Developer Portal to Valid OAuth redirect URIs and save.

Get credentials

Go to App 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 the Facebook App ID
  • Client Secret: Paste the 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
instagram_manage_contentsDelete posts, stories, and reels on the Instagram account linked to the user’s Page
instagram_manage_engagementPublish or delete likes on Instagram media and comments for the account linked to the user’s Page
business_managementManage the user’s business assets and settings
  • Instagram and Facebook share the same Meta OAuth endpoints and App ID/Secret. If you configure both providers, they must use the same Meta app credentials.
  • 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/createsend, writePOST/{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 how our website, product, and documentation are used.

Performance diagnostics

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

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

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