Syncing 10,000 leads/mo? Get a demo
Facebook Lead Ads logo

How to connect Facebook Lead Ads with FTP/SFTP

Connect Facebook Lead Ads to FTP/SFTP with LeadsBridge

Facebook Lead Ads » FTP/SFTP

In this article, you'll learn how to set up the bridge and connect Facebook Lead Ads to My CRM Example using LeadsBridge.


Facebook Lead Ads are a type of ads specifically designed to collect leads. In comparison to traditional ads that drive to website landing pages, with Facebook Lead Ads, the process of generating leads on Facebook is much easier. When users click on a Lead Ad on Facebook they instantly visualize a registration form to leave their data, without leaving the social network and the opt-in forms are pre-filled. Moreover, Facebook Lead Ads are optimized for mobile navigation and allow advertisers to easily collect leads from smartphones and tablets. User's data are automatically added by Facebook which takes them from their profiles.

How to set up your bridge step-by-step tutorial

Before you start

  1. Head over to the left sidebar and click on the Create new Bridge green button
  2. You'll be taken to the first step of the bridge creation

Step 1: Choose the apps you want to connect

  1. Choose Facebook Lead Ads as the source for your bridge
  2. Choose FTP/SFTP as the destination for your bridge
  3. Click on the Continue button
  4. At this point you can choose a name for your bridge (this will only be visible inside LeadsBridge and you can also edit it later)

Step 2: Configure your Facebook Lead Ads with FTP/SFTP

Step 2.A: Setup your Facebook Lead Ads integration

  1. Click on Connect Facebook Lead Ads
  2. Click on Create new integration to connect your Ad account (or select an existing one from the dropdown if you already connected it)
  3. You will be prompted to the Ad platform authorization experience. Here you will need to grant LeadsBridge access on click on the Authorize button
  4. Once done, you can choose a name for this Facebook Lead Ads and LeadsBridge integration (you can also edit it later)
  5. Once the authorization pop up is closed, you are ready to select from the dropdown the Ad Account and all the required parameters, including the form used to generate the leads.
  6. Now that your Facebook Lead Ads is connected, you can set-up your bridge destination

Step 2.B: Setup your FTP/SFTP integration

  1. Click on Connect FTP/SFTP
  2. Click on Create new integration to connect your FTP/SFTP (or select an existing one from the dropdown if you already connected it)
  3. A popup wil be opened where you can authorize the FTP/SFTP integration
  4. Fill Use SFTP? (Secure FTP), FTP Host, FTP Port, FTP Username, FTP Password, Root directory, Destination filename pattern, Private Key, Charset, File's extension (eg. txt), Fields Separator Char, Headers row number (default 0) field to connect FTP/SFTP with LeadsBridge
  5. Click on the Authorize button
  6. You can choose a name for this FTP/SFTP and LeadsBridge integration (you can also edit it later)
  7. Once done, click on Continue button and you will get back to the bridge experience where you could choose additional integration settings
  8. Now that your FTP/SFTP is connected, you can continue with the set-up of your bridge

Step 2.C: Configuration details for FTP/SFTP

How to get Use SFTP? (Secure FTP), FTP Host, FTP Port, FTP Username, FTP Password, Root directory, Destination filename pattern, Private Key, Charset, File's extension (eg. txt), Fields Separator Char, Headers row number (default 0)

Some FTP/SFTP details such as host name, username and password are required for accessing your files on the server by using an FTP client. The FTP details will comprise a server address (similar to, a username and a password.

In case that you don't have, or you don't know, those details, you should contact your web hosting provider, and they will be able to give you this information.

Usually, web hosting services provide you these details after you sign up for a web hosting package. In most cases you’ll receive your FTP/SFTP information details in the welcome email sent from your web host provider after signing up to their services.

Below you can find a short description for each field from the FTP/SFTP integration:

  • Use SFTP This toggle will allow you to use the Secure mode (SFTP), if your FTP server implements it

  • FTP Host This is the hosting server name

  • FTP Port This is the server port, the default port for FTP is 21, and for SFTP is 22

  • FTP Username/Password Your FTP credentials, usually they're the same as your cPanel login details

  • Root Directory This is the folder in your FTP service where you would read files from or put files to. If any provided, the root dir will be used

  • Headers row number This is the row index (0 based) in which the file headers are located

  • Charset This is the charset encoding of your input files

  • File's extension This is the extensions that will be used to filter files in case you use your integration as a Source

  • Fields Separator Char The char used as separator in the CSV file

  • Destination filename pattern This value will be used to define the name of the output file in case the integration is used as Destination. You may use Date and Time patterns chars such as Y/m/d H:i:s. Notice that you should type the pattern inside square brackets, for instance [Ymd]

Step 2.D: Email Receipt (Optional)

You may choose to receive an email receipt for each incoming lead.

  • Type the address(es) where you'd like to receive the receipt
  • You may also modify the Subject line of the email

Step 3: Fields Mapping

Here you'll be able to map your Facebook Lead Ads information with your FTP/SFTP fields.

  1. You will have FTP/SFTP fields on the left. Match the information you wish to pass align from Facebook Lead Ads
  2. Based on FTP/SFTP functionality, some fields might be required; if this is the case, you can identify those fields with a * (star), so be sure to map all them
  3. You can also use the functions to customize information like reformatting dates and times or modifying text, phone numbers and so on.
  4. You may leave blank the box of a field's information you don't want to send through. Clicking on the Show unmapped fields button you will have visibility on all the available fields still not mapped

Step 3.A: Leads Filter (Optional)

If you'd like you could add a filter for incoming leads. This filter will sync only leads that meet the configured conditions

  1. Click on the link Add Filter for Incoming Leads on the top left
  2. A popup wil be opened where you can configure the filter
  3. You can define a series of condition to filter the leads. The lead will be synced only when all the conditions will be met
  4. Once finished, click the Save Changes button to switch back to the Fields Mapping to continue with the bridge configuration

Step 3.B Test Connection (Optional)

Once you’ve mapped all the fields that you need, if available, you can run a test of your connection by clicking on the Test Connection button.

Step 4: Save and Publish

  • Click on the Save and publish button

Congratulations! Now your bridge is up and running


Common questions for Facebook Lead Ads

How to test Facebook Lead Ads?

To test Facebook Lead Ads and ensure their effectiveness, you can utilize the Facebook Lead Ads testing tool provided by LeadsBridge. This tool allows you to test your Lead Ads before they are released, providing you with the opportunity to evaluate the performance of your Lead Generation Form without even viewing the Ads on the Facebook platform.


Once you have created a bridge on LeadsBridge, it will be in active status automatically. This means that any mock lead sent through this tool will also be synced with your destination, ensuring a seamless connection between Facebook and your preferred marketing application.


To proceed with testing your Facebook Ads through LeadsBridge, follow these steps:


  1. Begin by creating a Facebook Leads Ads integration as outlined in this documentation.
  2. Once you have connected your "Source," which in this case is Facebook Lead Ads, and your "Destination" apps, and authorized the necessary accounts, move on to field mapping.
  3. Now, it's time to test the connection between your Facebook Form for Lead Ads and your destination platform, such as CRMs or Autoresponders. This testing phase further guarantees flawless execution. Follow these steps:
    - On the field mapping screen, locate the "Test connection" button at the bottom.
    - Fill in the required information and click "Run test".
    - Finally, click "Save & publish".


It's important to keep in mind that when using the LeadsBridge testing tool, any mock leads sent cannot be found on Facebook.


Then you have to set up your Facebook Lead Ads testing tool on Facebook, as well. 

Follow these steps:


  1. Access the Facebook for Developers platform and open the Facebook Lead Ads testing tool.
  2. Choose a "Page" and select a "Form".
  3. Click on "Create lead" to generate a new lead associated with the selected form. An email ( will be created as well.


If the setup is correct, you will see the following:

  • The lead will appear in your CRM or other destination platforms.
  • In the Leads Table of your bridge, the lead will be highlighted in green and marked as "Synced".
  • Any errors encountered can be viewed in the Error Table associated with your LB account.
( Learn more)

How to export your leads from Facebook Lead Ads

There are three ways to export leads from Facebook Lead Ads. 


  1. Manual Download (CSV format): This method involves downloading the leads in CSV format and then uploading them to a CRM or autoresponder for nurturing. While not the most recommended option due to manual handling drawbacks, combining CSV - Facebook Ads datasets allows you to create data visualizations and dashboards across your marketing stacks. You can download leads from Ads Manager or your Facebook page.
  2. API Download: Facebook provides the option to download leads through the API (application programming interface). To use this method, you need programming knowledge and must create an API. You'll also require the page access token and user access token, along with advertiser-level permissions.
  3. Facebook Lead Ads Automation: After capturing leads from your Facebook Lead Ads campaigns, you can automate the process of nurturing and following up with them. By connecting Facebook Lead Ads to your CRM or email marketing platform through LeadsBridge, you can sync lead data in real-time and gain valuable insights to optimize your campaigns, such as individual ads' ROI. Automation offers higher data accuracy compared to manual transfers, which are prone to errors.


( Learn more)

How to integrate Facebook Lead Ads with your CRM

To integrate Facebook Lead Ads with your CRM, there are two main methods you can consider.


  1. Custom Integrations: One way is to set up your own tool using Webhooks and Facebook Graph API to sync leads. This involves leveraging the APIs provided by Facebook to retrieve the lead data and then using Webhooks to transfer this information to your CRM. By setting up this custom integration, you can ensure a seamless flow of leads from Facebook to your CRM.
  2. Third-Party Integration: Alternatively, you can opt for a third-party provider like LeadsBridge to handle the integration for you. LeadsBridge offers a convenient solution to sync your Facebook leads with your CRM. By leveraging their platform, you can streamline the process and ensure that your leads are seamlessly transferred to your CRM without any manual effort on your part.


Learn more about the best Facebook Lead Ads - CRM integrations provided by LeadsBridge.


Moreover, LeadsBridge offers tailor-made solutions for custom development in case you need specific integrations for your in-house CRM.Discover more about our CRM tailor-made solutions!

How to automate Facebook Lead Ads notification with LeadsBridge

To automate Facebook Lead Ads notifications, rely on LeadsBridge. We offer a free solution for integrating Facebook emails, ensuring that all new Lead Ad forms are instantly delivered to your preferred email address. Setup is quick and once completed, the process becomes automatic and instantaneous, eliminating any need for manual transfers or waiting.


With email alerts, your team will never miss out on lead generation or conversion events. This enables prompt follow-up during peak user engagement, significantly increasing conversion chances. Our flexible integration allows you to designate whether the emails should be directed to a department head for lead assignment or a single salesperson. Rest assured, we support any system that helps your team promptly follow up with Facebook leads.

( Learn more)

Do you need help?

Here some additional resources:


How to Download Leads from Facebook Lead Ads

A step by step guide to Facebook Lead Ads

The best Facebook Lead Ads integrations for your marketing campaigns