Skip to main content
This guide shows you how to register your own app with Meta to obtain your OAuth credentials (client ID and client secret) for the Meta Marketing API. These are required to let your users grant your app access to their Meta Marketing API account.
1

Create a Meta Developer account

If you don’t already have one, go to Meta for Developers and create a developer account.
2

Create a Business-type app

  1. Go to the Meta Developer Dashboard.
  2. Click Create App, enter your App name then click Next.
  3. Select Other, then click Next.
  4. Select Business, then click Next.
  5. Select which Business portfolio you want to associate with the app, then click Create app.
3

Add Facebook Login for Business product

  1. In the left sidebar, click Add product.
  2. Scroll to the bottom of the page and click Set up for Facebook Login for Business.
  3. Once done, click Settings from the left navigation for Facebook Login for Business.
4

Configure OAuth settings

  1. In the Facebook Login for Business > Settings page, enable the following OAuth settings:
    • Client OAuth Login
    • Web OAuth Login
  2. In Valid OAuth Redirect URIs, add: https://api.nango.dev/oauth/callback
  3. Click Save Changes.
5

Request Marketing permissions

  1. In the left sidebar, navigate to App Review > Permissions and Features.
  2. Request the Marketing API permissions your app needs:
    • ads_read - Read ads data (required)
    • ads_management - Manage ads and campaigns (required if you need write access)
  3. These permissions unlock the Marketing API functionality.
    Some permissions may require App Review before going live.
6

Obtain your App credentials

  1. Go to App Settings > Basic in the left sidebar.
  2. Copy your App ID (this is your Client ID) and App Secret (this is your Client Secret). You’ll need these credentials when configuring your integration in Nango.
7

Next

Follow the Quickstart to connect your first account.
For more details, see how to create an application.

Important notes for Meta Marketing API

  • Facebook tokens expire after 60 days and cannot be refreshed. Once a token expires, users must re-authenticate by re-authorizing the connection.