How to Setup Facebook Trigger & FB App for Lead Forms?

Sup guys, full tutorial supersimplifed here

TLDR; Facebook is a permission and token hell, complex API but this should help u to get your leads on N8N in 20 minutes or so.

Facebook lead ads permissions and N8N setup

Your going to need a

  • Business Account set with page inside it and all permissions

App and Tokens

Create an App in developers.facebook.com

App Graph API Explorer Permissions

Graph API Explorer

  • lead_retrieval permission
  • pages_manage_metadata permission
  • pages_show_list permission

Graph Api Explorer Subscribe App for leadgen access with the page

Make a POST request using Graph API explorer since youre already on it or postmanm Windows CLI or Linux CLI, you choose.
https://graph.facebook.com/{page-id}/subscribed_apps?subscribed_fields=leadgen&access_token={page-access-token}

Permanent Token

Token Tool - Show your permanent Tokens (Same token with permanent validation)

Lead Ads Testing - Send test events (add or remove leads)

Setup of Business Account

Access the settings page of your business account and go to leads access, grant permissions to your app now.

Use the workflow

Facebook Webhook documentation

Read this twice if u don’t know nothing of facebook leadgen webhooks.

5 Likes