Unable to set up Facebook Lead Ads

I was trying to integrate Facebook Lead Ads with EspoCRM using n8n. My goal was to ensure that when I receive a lead through Facebook Lead Ads, it would automatically be added to my CRM system. However, I was unable to successfully set up the Facebook Lead Ads node. Let me share the steps I followed.

Steps I have followed:

  1. Created Facebook Lead Ads and HTTP Request nodes. (n8n)
  2. Created an app in the Developer area. (FB)
  3. Added Facebook Login to that app.
  4. Copied the OAuth Redirect URL (from n8n) into the Valid OAuth Redirect URIs field (in Facebook login).
  5. Set the Facebook app to live mode.
  6. Copied the App ID and Secret ID, then pasted them into n8n and connected successfully.
  7. Created a lead form to test.
  8. In n8n, selected my page and that lead form.

Results:

What am I doing wrong here, and how can it be done successfully? I’ve noticed that many people have shared different methods, making it difficult to understand which one to follow Any advice would be appreciated.

Information on my n8n setup

  • n8n version: 1.54.4
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: ubuntu 22.04

Hey @looper,

Welcome to the community :tada:

I am not sure what the issue is as I can’t see the options you have configured in the node however as a starting point can you check your webhook url in the node and make sure it is not http://localhost:5678 if it is can you set WEBHOOK_URL as an environment variable that includes your domain.

Yeah, that’s the issue. Thanks for the help!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.