Think. Build. Salesforce Solutions.

Salesforce Consulting Services across Salesforce Clouds & Across App Lifecycles


How to integrate Facebook Leads ads with Salesforce?

By |2020-09-22T16:02:36+00:00September 14th, 2020|

As a study said Facebook had 2.45 billion active users in the year 2019 and the rate of active users is increasing day by day. It is not wrong to say that Facebook is the king of social media platform. Similarly, Salesforce is the world’s number platform for customer success and helps businesses track customer activity.

Integration of two big platforms provides a powerful system to interact with your potential prospect. It makes companies easier to get interact with clients and become more productive than ever.

Why connect Facebook Lead Ads to Salesforce?

salesforce integration with facebook

  1. Generates high engagement and ad recall.
  2. Easy to target incoming leads.
  3. Increase campaign effectiveness.
  4. Ensure leads are collected in a secure system.
  5. Save time in downloading the CSV file.
  6. Make it easy to quickly respond.
  7. Easy to get user’s information.
  8. Better way to track leads.

It’s better for you to integrate your Facebook account to salesforce to become more productive than ever. And if you are unsure or uncertain about how to connect dots then this article will discuss the best practices to connect Salesforce account with Facebook Leads Ads.

Simple Steps to integrate Facebook Lead Ads with Salesforce:

1. Login to Salesforce Developer Account.

Salesforce facebook

2. After login, click on setup> Build> Develop>Pages.

connect salesforce with facebook

3. Post that, you will be directed to attached screen. Here you have to click on “New” tab.

Sync facebook leads with salesforce
4. After that, you have to create a visualforce page in salesforce with the name “Facebook Integration”.

salesforce and facebook leads

5. Thereafter copy and paste the following code into the visualforce editor with in salesforce.

<apex:page><div id=”fb-root”></div><script>(function(d, s, id) {varjs, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); = id;js.src = “//″;fjs.parentNode.insertBefore(js, fjs);}(document, ‘script’, ‘facebook-jssdk’));</script><apex:pageBlock title=”facebook Integration” mode=”edit”><apex:pageBlockSection title=”facebook Comment Block”>
<div data-href=”” data-numposts=”5″ data-colorscheme=”light”></div>

how to connect facebook leads to salesforce

6. Then click on the Save button to complete the process.

integrate facebook leads to salesforce

After implementing the integration successfully, any Facebook posted feed will have a corresponding record in salesforce as well.

With the suggested steps, you can easily integrate Facebook Ads to Salesforce. Feel free to reach out to us for your queries, we would be more than glad to help you out!!

One Comment

  1. PR January 7, 2022 at 12:27 am - Reply

    we are trying to connect facebook ads with the salesforce. Just wondering if above steps work and what would be the URL

Leave A Comment