Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.nekt.com/llms.txt

Use this file to discover all available pages before exploring further.

Facebook Leads is Meta’s lead generation platform that helps businesses capture potential customer information through Facebook and Instagram ads. It provides tools for creating lead forms, collecting contact details, and managing prospect data for sales and marketing campaigns.

Configuring Facebook Leads as a Source

In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Facebook Leads option from the list of connectors. Click Next and you’ll be prompted to add your access.

1. Add account access

You’ll need Page ID and your Access Token. Check the linked documentation if you need help on finding any of the credentials. The following configurations are available:
  • Page ID: The ID of the Facebook Page associated with your lead forms.
  • Access Token: Your Facebook Graph API access token with the necessary permissions to read lead data.
  • Start Date: Inform a start date for us to know the date of the earliest record you want to sync with. This will help to avoid processing unnecessary data.
Once you’re done, click Next.

2. Select streams

The next step is letting us know which streams you want to bring. You can select entire groups of streams or only a subset of them.
Tip: The stream can be found more easily by typing its name.
Select the streams and click Next.

3. Configure data streams

Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a name for each table (which will effectively contain the fetched data) and the type of sync.
  • Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
  • Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
  • Sync Type: depending on the data you are bringing to the lake, you can choose between INCREMENTAL and FULL_TABLE. Read more about Sync Types here.
Once you are done configuring, click Next.

4. Configure data source

Describe your data source for easy identification within your organization. You can inform things like what data it brings, to which team it belongs, etc. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings (if available).
  • Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
  • Determine when to execute an Additional Full Sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while.
Once you are ready, click Next to finalize the setup.

5. Check your new source

You can view your new source on the Sources page. Now, for you to be able to see it on your Catalog, you have to wait for the pipeline to run. You can now monitor it on the Sources page to see its execution and completion. If needed, manually trigger the pipeline by clicking on the refresh icon. Once executed, your new table will appear in the Catalog section.
If you encounter any issues, reach out to us via Slack, and we’ll gladly assist you!

Streams and Fields

Below you’ll find the available data streams from Facebook Leads and their corresponding fields:
Stream containing the information submitted by prospects through Facebook and Instagram lead generation forms.Key fields:
FieldTypeDescription
idStringUnique identifier of the record.
created_timeDateTimeTimestamp when the record was created.
form_idStringIdentifier of the associated lead form.
campaign_nameStringName of the ad campaign.
campaign_idStringIdentifier of the associated ad campaign.
adset_nameStringName of the ad set that captured the lead.
adset_idStringIdentifier of the associated ad set.
ad_nameStringName of the ad that captured the lead.
ad_idStringIdentifier of the associated ad.
platformStringPlatform where the lead was submitted.
field_dataArray of ObjectsCustom question and answer pairs from the lead form.
field_data[].nameStringName of the lead form field.
field_data[].valuesArray of StringsSubmitted answers for the form field.

Implementation Notes

API Pagination and Discovery

  • Lead Forms Discovery: The connector automatically handles API pagination through the leadgen_forms endpoint, retrieving up to 500 forms per request. This ensures all lead forms associated with your Page ID are successfully discovered and synced, regardless of the account size or previous strict API result limits.

Skills for agents

Download Facebook Leads skills file

Facebook Leads connector documentation as plain markdown, for use in AI agent contexts.