1
Create a Facebook Developer account
If you don’t already have one, go to Meta for Developers and create a developer account.
2
Create a new app
- Go to the Meta Developer Dashboard.
- Click Create App, enter your App name then click Next.
- Select the Use cases your app needs, then click Next.
- Select the Business portfolio to associate with the app, then click Next.
- Review the Publishing requirements, then click Go to dashboard.
If you’re asked for an app type, choose Business: Facebook Login for Business is only available to Business apps.
3
Configure OAuth settings
- If Facebook Login for Business isn’t in the left sidebar, add it from Add product.
- In the left sidebar, go to Facebook Login for Business > Settings.
- In Valid OAuth Redirect URIs, add
https://api.nango.dev/oauth/callback. - Click Save Changes.
4
Obtain your app credentials
- Go to App Settings > Basic in the left sidebar.
- Copy your App ID (your Client ID) and App Secret (your Client Secret).
5
Create a configuration
- In the left sidebar, go to Facebook Login for Business > Configurations, then click Create configuration.
- Choose the access token type:
- System-user access token: a business integration system user token, owned by the business rather than the person who logs in.
- User access token: a token tied to the person who logs in.
- Choose the token expiration, the assets and the permissions your app needs.
- Save the configuration and copy its Configuration ID.
Some permissions require App Review before going live. To access data owned by other businesses, your business also needs Business Verification.
6
Create the integration in Nango
Enter the Client ID, Client Secret and Configuration ID when you create the integration. Leave the scopes empty: the configuration sets the permissions.
7
Next
Follow the Quickstart.
Important notes for Facebook (Login for Business)
- The token expiration is set in the configuration (60 days by default). Nango can’t refresh these tokens: when one expires, users must re-authorize the connection.