Documentation
Facebook Lead Ads Integration Guide
Connect your LeadMachine account with Facebook Lead Ads to automatically receive leads from your Facebook and Instagram advertising campaigns.
What is the Facebook Lead Ads Integration?
The integration allows you to:
- Automatically receive leads when someone fills out a Facebook Lead Form
- Import historical leads from existing Facebook Lead Ad campaigns
- Track lead source and ad campaign attribution
- Apply tags to Facebook leads for easy segmentation
- Keep Facebook lead data synced with your LeadMachine CRM
How Facebook Lead Ads Work
Facebook Lead Ads are a special ad format that:
- User sees your ad on Facebook/Instagram
- User clicks the ad and sees a pre-filled form (using their Facebook profile data)
- User submits the form without leaving Facebook
- Lead data is sent to your connected systems (like LeadMachine)
Benefits:
- Lower friction than traditional landing pages
- Pre-filled forms increase completion rates
- Real-time lead delivery
- Works on both Facebook and Instagram
Setup Requirements
Before you start, you need:
- Active LeadMachine account (Admin or Manager role)
- Facebook Business Page with Lead Ads permissions
- Facebook Ad Account with active or planned Lead Ad campaigns
Connecting Your Facebook Page
Step 1: Navigate to Settings
- Log into LeadMachine as Admin
- Go to your Company page
- Click the Settings tab
- Scroll to Facebook Lead Ads section
Step 2: Start OAuth
- Click the Connect with Facebook button
- You'll be redirected to Facebook
Step 3: Authorize on Facebook
- Log in to Facebook if needed
- Review the permissions requested:
- Click Continue
- Select the Pages you want to connect
- Click Done
Step 4: Select Your Page
If you manage multiple Pages:
- You'll see a list of your Facebook Pages
- Click on the Page you want to connect
- The connection will be saved
If you manage only one Page:
- It will be automatically selected
Step 5: Verify Connection
After connecting:
- Green checkmark appears next to "Connected Page"
- Page name displays in settings
- "Disconnect" button becomes available
If connection fails:
- Verify you have admin access to the Facebook Page
- Check that Lead Ads permissions are approved
- Try disconnecting and reconnecting
- Contact support if issue persists
Receiving Leads Automatically
Once connected, leads are received automatically via webhook:
- Someone fills out your Facebook Lead Form
- Facebook sends notification to LeadMachine (within seconds)
- LeadMachine fetches full lead details
- Lead is created in your account with:
Enable automatic processing:
- Go to Company > Settings > Facebook Lead Ads
- Toggle Enable Facebook Lead Ads to ON
- Click Save Settings
Importing Historical Leads
For leads collected before connecting, use manual import:
Step 1: Access Import Page
- Go to Company > Settings > Facebook Lead Ads
- Click Import Leads button
- Or navigate directly to Import from Facebook page
Step 2: Select a Form
- Choose a Lead Form from the dropdown
- If forms aren't showing, click Refresh to fetch from Facebook
- Form shows lead count (number available to import)
Step 3: Configure Import
Tag Assignment (Optional):
- Check "Add a tag to all imported leads"
- Choose an existing tag OR
- Create a new tag (e.g., "Facebook Leads Q4")
Import Count:
- Select how many leads to import per batch
- Facebook limits to 100 per request
- Use "Continue Importing" for more
Step 4: Run Import
- Click Start Import
- Wait for processing
- View results:
Step 5: Continue if Needed
If more leads are available:
- Click Continue Importing Next Batch
- Repeat until all leads are imported
Default Tag Configuration
Automatically tag all Facebook leads:
- Go to Company > Settings > Facebook Lead Ads
- Find Default Tag for Imported Leads
- Select a tag from dropdown (your company tags)
- Click Save Settings
All leads (both webhook and manual import) will receive this tag.
Viewing Facebook Leads
In Leads List
Facebook leads appear like any other lead with:
- Source: facebook
- Tag: Your configured tag (if set)
- Icon: Facebook badge indicator
Filter by Facebook:
- Go to Leads page
- Filter by Source = "Facebook"
- Or filter by your Facebook tag
In Lead Details
On individual lead page:
- Note shows "Imported from Facebook Lead Ads"
- Form name and campaign info in note
- Ad name if available
- Full audit trail of import
Sync History
View import history:
- Check Activity Log in company settings
- Filter by "facebook_pull_leads" action
- See import counts and timestamps
Field Mapping
Facebook Lead Form fields map to LeadMachine as follows:
| Facebook Field | LeadMachine Field |
| --------------- | ------------------- |
| Lead Contact (email) | |
| first_name | First Name |
| last_name | Last Name |
| full_name | First + Last Name |
| phone_number | Lead Contact (phone) |
| company_name | Company |
| job_title | Title |
| street_address | Street |
| city | City |
| state | State |
| zip_code | Zip Code |
| country | Country |
| Permission | Purpose |
| ----------- | --------- |
| pages_show_list | See which Pages you manage |
| pages_read_engagement | Read Page info and settings |
| pages_manage_ads | Subscribe to lead notifications |
| leads_retrieval | Download actual lead data |
Why these are needed:
- Can't receive leads without leads_retrieval
- Can't subscribe to webhooks without pages_manage_ads
- Need to know which Page to connect
Disconnecting Facebook
How to Disconnect
- Go to Company > Settings > Facebook Lead Ads
- Click Disconnect button
- Confirm disconnection
What happens:
- Webhook subscription removed
- No more automatic leads
- Connection tokens deleted
- Existing leads remain untouched
To reconnect: Click "Connect with Facebook" again.
Removing from Facebook
To fully revoke access:
- Go to Facebook Settings
- Navigate to Security > Apps and Websites
- Find LeadMachine
- Click Remove
This revokes all permissions - you'll need to reconnect from scratch.
Privacy & Compliance
Data Handling
- Lead data is transmitted securely (HTTPS)
- Data is stored in your LeadMachine database
- You control data retention and deletion
- Follows your company's privacy policy
GDPR Considerations
If serving EU users:
- Ensure your Lead Ad forms have consent checkboxes
- Include privacy policy link in forms
- Honor data deletion requests
- Only import leads with consent
Facebook's Requirements
Facebook requires:
- Privacy policy on your website
- Terms of service
- Legitimate business purpose for lead collection
Getting Help
Support Email: [email protected]
Include in your request:
- Screenshot of any error messages
- Page name and ID (if known)
- What you were trying to do
- Browser and device used
Last Updated: December 2025