Solution- Rest API Integration/Data upload via Data Loader/Salesforce Lead Capture.
Let's go ahead easy Automation way, Salesforce Lead Capture.
This App is provided by Salesforce.
Let's start configuring it in our Developer Org.
Login to App-Exchange and download an app from the link below:
Install for Admins only, as we would need to setup it correctly. You can decide it according to your business requirements.
After installing an Appexchange, we usually look in the Application tab for the app installed.
You can find a custom tab created as 'Lead Capture' in the All tabs in Salesforce.
Please authenticate your facebook account which has your business page.Make sure you are admin of the facebook page you wish to automate leads.
Please select which business page(Facebook) you would like to link it.
You would be shown some active forms which fetch data from the Facebook business page.
Map Form fields with Salesforce lead fields (Standard and Custom Fields).
You can use Fixed Value for some required fields in the lead object.
So whenever new lead would be submitted, It would be automatically transferred to Salesforce.
How to differentiate between Normal leads and leads which would be inserted into Facebook?
Salesforce Lead Capture used an External ID field as Facebook lead ID ( External ID field is used to avoid duplicates in the records as it performs as a unique key ). You won't find it in the page layout but you can add it there.
Create a list view and in the criteria, you can use Facebook Lead Id not equal to NULL( Facebook_lead_id__c != NULL).List view would show all the leads which would be coming from Facebook.
As we installed the App in the developer org, How to test it if we configured it correct or wrong and lead is going correctly in Salesforce?
Thanks to Facebook, we have a Lead Ads Testing Tool.https://developers.facebook.com/tools/lead-ads-testing