Skip to content

Facebook Lead Ads credentials#

You can use these credentials to authenticate the following nodes:

Supported authentication methods#

  • OAuth2

Refer to Facebook Lead Ads' documentation for more information about the service.

View example workflows and related content on n8n's website.

Using OAuth2#

To configure this credential, you'll need a Meta for Developers account and:

  • A Client ID
  • A Client Secret

To get both, create a Meta app with either the Facebook Login product or the Facebook Login for Business product.

To create your app and set up the credential with Facebook Login for Business:

  1. Go to the Meta Developer App Dashboard and select Create App.
  2. If you have a business portfolio and you're ready to connect the app to it, select the business portfolio. If you don't have a business portfolio or you're not ready to connect the app to the portfolio, select I don’t want to connect a business portfolio yet and select Next. The Use cases page opens.
  3. Select Other, then select Next.
  4. Select Business and Next.
  5. Complete the essential information:
    • Add an App name.
    • Add an App contact email.
    • Here again you can connect to a business portfolio or skip it.
  6. Select Create app. The Add products to your app page opens.
  7. Select Facebook Login for Business. The Settings page for this product opens.
  8. Copy the OAuth Redirect URL from your n8n credential.
  9. In your Meta app settings in Client OAuth settings, paste that URL as the Valid OAuth Redirect URIs.
  10. Select App settings > Basic from the left menu.
  11. Copy the App ID and enter it as the Client ID within your n8n credential.
  12. Copy the App Secret and enter it as the Client Secret within your n8n credential.

Your credential should successfully connect now, but you'll need to go through the steps to take your Meta app live before you can use it with the Facebook Lead Ads trigger. Here's a summary of what you'll need to do:

  1. In your Meta app, select App settings > Basic from the left menu.
  2. Enter a Privacy Policy URL. (Required to take the app "Live.")
  3. Select Save changes.
  4. At the top of the page, toggle the App Mode from Development to Live.
  5. Facebook Login for Business requires Advanced Access for public_profile. To add it, go to App Review > Permissions and Features.
  6. Search for public_profile and select Request advanced access.
  7. Complete the steps for business verification.
  8. Use the Lead Ads Testing Tool to trigger some demo form submissions and test your workflow.

Refer to Meta's Create an app documentation for more information on creating an app, required fields like the Privacy Policy URL, and adding products.

For more information on the app modes and switching to Live mode, refer to App Modes and Publish | App Types.