Integrations: Facebook Lead Ads

Welcome To Facebook Leads Ads in Flows by Enreach.

Here you can connect Facebook Lead Ads with Flows by Enreach, via the Zapier app. 

Read through the article, or click a link below to get started:


Creating a Lead Source

To begin, you need to create a Lead Source that you will connect to Facebook Lead Ads.

To access Lead Sources, expand the  Leads drop-down menu, and click Lead Sources.

In the Lead Sources navigation page, click New.

To create a Lead Source, follow the instructions in this article.

However, make a note of the Username and Password you create, as these will be used to connect Zapier to the Flows by Enreach API. 

Under Source Type, select API

Continue creating your Lead Source and save it. 

In the Lead Source navigation page, hover your cursor over the Lead Source icon to reveal the Client ID, Source ID, Username, and Password.
Make a note of these as you will need them to connect Zapier to the Flows by Enreach API. 


Connecting Facebook to Zapier

To connect Facebook Leads Ads with the Flows API, you will need to create a Zap in Zapier. 

Login to your Zapier account, and on the Dashboard page, click Make a Zap!

Zapier works in 2 steps: a Trigger, and an Action.
In this scenario, we want to use Facebook Lead Ads as the Trigger App.

Under Choose a Trigger App, select Facebook Lead Ads

When you have selected Facebook Lead Ads, click Save & Continue

Next, click Connect an Account to connect the Zap to your Facebook account. 

In the popup, enter your Facebook credentials to login. You can also click Test to verify that the account has been successfully connected.

When you are finished, click Save & Continue

Next, select which Facebook page and Form the incoming Leads will be delivered to. 

In the image below, HeroBase (Enreach Campaigns) has been selected as the page, and Default has been selected as the Form.

Click Continue

Test the connection between Zapier and your Facebook account by clicking Pull in Samples

If successful, the samples will be displayed. If there are no Leads to pull, then fake examples will be generated. 

If Zapier is unable to pull in the samples, try to reconnect your account by returning to the Connect an Account step. 

To finish setting up the connection with Facebook, click Continue with Sample.


Connecting Zapier to the Flows by Enreach API

Now you have set up your Trigger, it's time to set up the Action, to connect Zapier to the Flows by Enreach API. 

In Zapier, click + Add a Step, then select Action/Search. 

In the Action/Search page, select Webhooks

Under Webhooks, select POST, then click Save & Continue

Next, add the information to connect Zapier to the Flows by Enreach API. 

Under URL, enter the data that you want to send to the Flows by Enreach API. In the text field, enter the Flows API URL: https://flows.herobase.com:443/Service/Service_AddMultipleCustomerUsingSource

Under Payload Type, enter Json in the text field. 

Under Data, enter the following Lead Source information that can be found in the Lead Source navigation page: Username, Password, ClientID, and SourceID

Click the plus icon to add another field, until all four Keys and Values are entered. 

In the second area of the Data section you can configure what data you want to collect from Facebook Lead Ads and add as Leads into Flows by Enreach.

In the image below, you can see that we have added Telephone1 (a Flows by Enreach Lead field) as the Key, and used the phone number from Facebook Lead Ads as the Value.
This means that the data from Phone Number in Facebook Leads Ads is added to the Lead under the Lead Field Telephone1. 

Click on the Value field to view which Facebook Lead Ads values are available, and click on the ones you wish to add as a Value. 

The following are the standard fields which can be entered as a Key and will be sent to Flows by Enreach: Origin, Email, Forename, Website, Lastname, Country, Address, CountryCode, Zip, CustomerNr, City, Companyname, Telephone1, Gender, Telephone2, CustomerStatus, Telephone3, PersonID, and Telephone4.

To add a custom Lead Field that you have created in Lead Fields, enter [ExtFields] in the Key field, then add the custom Lead Field in the Value field

In the example below, the custom Lead Fields facebook_ad_id and facebook_form_id have been added.
Please note that multiple Lead Fields need to be separated by a semicolon

When you have entered all the Keys and Values, all of the data will be configured.
In the image below, Telephone1, Email, facebook_ad_if and facebook_form_id will be created as a Lead in the Lead Source 1047 in Flows by Enreach. 

When this is done, click Continue

To test the connection between Zapier and the Flows by Enreach API, click Send Test to Webhooks by Zapier.

If the test is successful, you will see a message saying Test was successful!
Click Finish to complete the Zapier setup. 

Leads that have been imported into Flows by Enreach from Facebook Leads Ads can be viewed under Leads Log.

Finally, enter a name for your Zap, and toggle to On

Still need help? Contact Us Contact Us