SocialMati
SocialOAuth 2.0 (Facebook Login) — App ID + App secretPricing verified 2026-10-06

Facebook / Meta

Publish to Facebook Pages and Instagram professional accounts, sync comments, Messenger and Instagram DMs, page reviews and Lead Ads; also the base app for Meta Ads.

AProvider definition

Provider
Facebook / Meta
What it does
Publish to Facebook Pages and Instagram Business accounts, sync comments, Messenger and Instagram DMs, and page reviews.
Why we need it
Publish to Facebook Pages and Instagram professional accounts, sync comments, Messenger and Instagram DMs, page reviews and Lead Ads; also the base app for Meta Ads.
Used in
Social (publish, comments, inbox, reviews) · CRM (Lead Ads, DMs) · Performance ads (Meta Ads)

BAccount requirements

Account type
Meta developer account + a Business-type Meta app
Prerequisites
  • Facebook account with admin rights on the Pages
  • Meta Business Portfolio (Business Manager)
  • Instagram professional account linked to a Page (for Instagram)
Verification
Business Verification is required for Advanced Access to any permission.

CConnection method

Authentication
OAuth 2.0 (Facebook Login) — App ID + App secret
Where to enter it
  • Your workspace: App → Integrations → Providers & API keysWorkspace owner or admin. Keys added here are used only by your workspace (AI keys here don't use plan credits).
  • Per brand: App → Integrations → Connected accountsAnyone who manages the brand. Each brand connects its own accounts.

Setup steps

  1. 1Go to developers.facebook.com → My Apps → Create app → choose the Business type.
  2. 2Add the products: Facebook Login for Business, Instagram (API with Facebook Login), Messenger, Webhooks, and Marketing API if you use Meta Ads.
  3. 3Facebook Login → Settings: add the Valid OAuth redirect URIs shown below.
  4. 4Webhooks: subscribe the Page and Instagram objects to the callback URL shown below, using the verify token you enter in the application.
  5. 5App settings → Basic: copy the App ID and App secret; add privacy policy and terms URLs, app icon and category.
  6. 6App Review → Permissions and features: request Advanced Access for each permission listed below, with a screencast of how the app uses it.
  7. 7Complete Business Verification for your Business Portfolio.
  8. 8Switch the app to Live mode, enter the App ID and secret in the application, then connect each brand from Integrations → Connected accounts.

DPermissions & API scopes

Scope / permissionWhy it's neededRequested by
pages_show_listList the Pages you manage so you can pick which to connect.Facebook & Instagram connection
pages_read_engagementRead Page posts, followers and engagement for analytics.Facebook & Instagram connection
pages_manage_postsPublish, schedule and delete posts on your Pages.Facebook & Instagram connection
pages_manage_engagementReply to and moderate comments.Facebook & Instagram connection
pages_read_user_contentRead comments and posts by others on your Pages.Facebook & Instagram connection
pages_manage_metadataSubscribe your Page to webhooks for real-time comments and messages.Facebook & Instagram connection
pages_messagingRead and reply to Messenger conversations in the inbox.Facebook & Instagram connection
read_insightsRead Page insights for analytics and reports.Facebook & Instagram connection
business_managementAccess Pages and assets owned by your Business Portfolio.Facebook & Instagram connection
leads_retrievalImport Facebook/Instagram Lead Ads submissions into the CRM.Facebook & Instagram connection
pages_manage_adsManage Lead Ads forms connected to the Page.Facebook & Instagram connection
instagram_basicRead the connected Instagram professional account profile and media.Facebook & Instagram connection
instagram_content_publishPublish photos, carousels and reels to Instagram.Facebook & Instagram connection
instagram_manage_commentsRead and reply to Instagram comments.Facebook & Instagram connection
instagram_manage_messagesRead and reply to Instagram DMs in the inbox.Facebook & Instagram connection
instagram_manage_insightsRead Instagram post and account insights.Facebook & Instagram connection
ads_management(Meta Ads) Create, pause and change budgets of campaigns.Meta Ads connection
ads_read(Meta Ads) Read campaign spend and results.Meta Ads connection
business_managementAccess Pages and assets owned by your Business Portfolio.Meta Ads connection
pages_show_listList the Pages you manage so you can pick which to connect.Meta Ads connection
pages_read_engagementRead Page posts, followers and engagement for analytics.Meta Ads connection
leads_retrievalImport Facebook/Instagram Lead Ads submissions into the CRM.Meta Ads connection
pages_manage_adsManage Lead Ads forms connected to the Page.Meta Ads connection

This list is generated from the scopes the application's code requests.

EFree vs paid

Free account / free API access
Yes — the Graph API has no subscription fee.
Card or billing account required?
No for the API itself. Ad spend is billed by Meta in Ads Manager.
Paid plan / costs
None for API access.
Quota and usage limits
Rate limits per app and per Page (Business Use Case limits); Instagram allows a limited number of API-published posts per account per 24 hours.
Production restrictions
Until App Review grants Advanced Access, only people with a role on the app (admins, developers, testers) can connect. App Review typically takes days to weeks per submission.

FSetup screenshots

Capture each step with real values masked. Save images as public/docs/integrations/meta/1.png … 10.png and they appear here automatically.

  1. Screenshot to add
    1. Account login / creation
    The provider's sign-in or sign-up page.
  2. Screenshot to add
    2. Developer console
    The developer console or dashboard home.
  3. Screenshot to add
    3. Project / app creation
    Creating the app or project used for this integration.
  4. Screenshot to add
    4. API enablement
    The API or product enabled for the project.
  5. Screenshot to add
    5. OAuth configuration
    Consent screen / OAuth settings with the redirect URIs.
  6. Screenshot to add
    6. API key / credentials creation
    Creating the key, secret or token (mask the value).
  7. Screenshot to add
    7. Permissions / scopes
    The scopes or permissions requested or approved.
  8. Screenshot to add
    8. Billing / quota settings
    Billing, credits or quota page.
  9. Screenshot to add
    9. Application connection
    The provider card in our application with fields filled (secrets masked).
  10. Screenshot to add
    10. Successful connection
    The green Test result or the connected account listed.

GApplication configuration

Never include real API keys, client secrets, access tokens or passwords in screenshots, tickets or documentation. Values below are field names and examples only.

FieldRequiredExample / defaultNotes
App IDYes—
App secretYes••••••••Stored encrypted; shown masked after saving.
Graph API versionOptionalv26.0
Webhook verify tokenOptional—Any random string; paste the same value in the Meta webhook settings.

Paste these into the provider's console

Valid OAuth redirect URI
https://api.socialmati.com/api/oauth/meta/callback
Webhook callback URL
https://api.socialmati.com/api/webhooks/meta
Valid OAuth redirect URI (Ads Manager)
https://api.socialmati.com/api/oauth/ads/meta/callback

Connecting an ad account (Meta Ads)

Covers Facebook, Instagram, Messenger, Audience Network. Connect with OAuth from Performance ads → Ad accounts, or paste a token:

  • • Access token (system user recommended) (required)
  • • Ad account ID (required) — Digits only, without act_

HTesting

  1. 1Integrations → Connected accounts → Connect Facebook; approve the Pages.
  2. 2Social → Create post → publish a test post to one Page.
  3. 3Comment on that post from another account — it should appear in Social → Comments within a minute.

ITroubleshooting

ProblemWhat to do
“URL blocked” / redirect_uri mismatchThe redirect URI must match exactly (https, path, no trailing slash) in Facebook Login → Settings.
Only your own account can connectThe app is in Development mode or lacks Advanced Access. Complete App Review and switch to Live.
(#200) permission error when publishingThe permission was not granted or not approved. Reconnect and accept all permissions; check App Review status.
Instagram account not listedIt must be a Business or Creator account linked to a Facebook Page you manage.
Token expiredPage tokens become invalid when the user changes password or removes the app. Reconnect the account.
Invalid credentialsCheck the Client ID/App ID and secret were copied from the same app, without spaces. Regenerate the secret if unsure.
Missing permissionsReconnect and accept every permission on the consent screen. If a permission is missing from the list, add it to the app (and get it approved).
OAuth failureSign-in was cancelled, the app is in development/testing mode, or the user isn't allowed to use it yet. Add the user as a tester or publish the app.
Redirect URI mismatchCopy the redirect URI from section G exactly — same https scheme, host and path, no trailing slash — into the provider's app settings.
API not enabledEnable the API/product for the project or app in the provider console and wait a few minutes.
Quota exceededWait for the quota window to reset (see section E) or request a higher quota / add credits.
Account not eligibleCheck the account requirements in section B (e.g. business/professional account, verified property, registered organisation).
App review requiredPermissions beyond development access need the provider's review before other accounts can connect. See section E for restrictions.
Billing requiredAdd a payment method or prepaid credits on the provider account (see section E).

JDisconnect & security

Revoke access at the provider
Facebook → Settings & privacy → Business integrations → remove the app; or disconnect in Integrations → Connected accounts. Reset the App secret in App settings → Basic to rotate it.
Disconnect in the application
App → Integrations → Providers & API keys or App → Integrations → Connected accounts → open the card → Remove / Disconnect. Connected accounts can be disconnected per brand.
Rotate credentials
Create the new key or secret first, paste it into the same card and Test, then delete the old one at the provider — no downtime.
How credentials are stored
Encrypted at rest with AES-256-GCM using the server's ENCRYPTION_KEY, shown masked after saving, never returned to the browser, and used only from the API server.
What data the application can access
Pages and Instagram accounts you approve: posts, comments, messages, insights, reviews and lead form submissions.

Other Social providers

Start Free