> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lancer-erp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Facebook / Instagram Lead Ads

> Leads from Facebook and Instagram lead-ad forms flow straight into Lancer's pipeline, with no n8n or Make in between.

Leads from Facebook and Instagram lead-ad forms flow straight into Lancer's pipeline, with no n8n or Make in between.

> [!NOTE]
>
> **Category:** Lead sources ("מקורות לידים")\
> **Connection:** one for the whole organization, admins only

## What it does in Lancer

* Each new lead lands in the pipeline with its source and a "call back" task for the next business day.
* Choose the stage leads land in and the owner who gets the call-back task.
* **Sync leads** ("סנכרון לידים") pulls leads you may have missed.

## Connect

**1. Open the integration**

Open CRM settings → **Lead sources** ("מקורות לידים"), at [app.lancer-erp.com/app/crm/settings/lead-sources](https://app.lancer-erp.com/app/crm/settings/lead-sources), and click **Connect** ("חיבור") on Facebook / Instagram Lead Ads.

**2. Get your credentials**

In your app on Meta for Developers. Lancer subscribes the page to lead events itself.

**3. Fill in the card and save**

Enter the details below and click **Save** ("שמירה"). Secrets are stored encrypted and never shown again; leave a secret field empty later to keep the stored value.

> [!NOTE]
>
> Only admins can view and change this connection.

## What you need

**Page ID** `string`

The Facebook page that runs the ads.

**Page access token** `string`

With `leads_retrieval`, `pages_manage_metadata` and `pages_show_list`. Stored encrypted.

**App secret** `string`

Your Meta app's secret, used to verify every webhook's signature.

## Webhook and notify URLs

The exact URL, with your organization's token in place of `<token>`, is shown on the card in Lancer. Copy it from there.

### Callback URL

```text theme={null}
https://api.lancer-erp.com/webhooks/meta-leads/<token>
```

Shown after the first save, with a **Verify token**. In your Meta app: Webhooks → Page: paste both and subscribe to the `leadgen` field.

## Good to know

* Prefer not to run a Meta app? Use the [n8n or Make template](https://docs.lancer-erp.com/guides/n8n-and-make.md) with a lead form instead.

## Vendor documentation

> [card] [Facebook / Instagram Lead Ads documentation](https://developers.facebook.com/docs/marketing-api/guides/lead-ads)
>
> The official docs, at developers.facebook.com.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.