Integration
Real-time lead capture from Meta Lead Ads
Create a Meta App
Go to developers.facebook.com → My Apps → Create App. Choose "Business" type.
Add Lead Ads Product
In your app dashboard, add the "Lead Ads Retrieval" product.
Configure Webhooks
Go to Webhooks → Subscribe to "leadgen" events on your Page. Use the webhook URL below.
Enter Your Verify Token
Use the same value you set as META_VERIFY_TOKEN in the app secrets.
Get Page Access Token
Use Graph API Explorer → select your Page → generate a long-lived token → save as META_PAGE_ACCESS_TOKEN.
Subscribe to your Page
In Webhooks, click "Subscribe" next to your Facebook Page.
Webhook URL
https://swellwindowexteriorservices.com/api/functions/metaLeadWebhook
Secrets Status
Test Integration
No leads yet. Use "Send Test Lead" to verify the integration.