How To Integrate Facebook With Salesforce


As per the statistics, Facebook had 2.2 million active users in the year 2017. This figure looks like an awful lot and it is only going to increase and increase in the coming years. Having a social media presence has become the need of the hour. The social media presence opens new skylines of connection amongst you and your client.

To put it simply, organizations that use online social networking CRM achieve a more extensive scope of audience, visitors and leads in a lesser amount of time when compared with their rivals who utilize a conventional CRM.

When Salesforce’s Service Cloud Einstein feature is successfully integrated with social media, it puts the brilliance of artificial intelligence to work. Usage of keywords, language detection tools and classifiers, ensures that your workforce is immediately alerted to the social media posts that may require immediate action.

These alerts will definitely help your wonderful sales team to understand what your clients actually like or dislike, and what questions do they have regarding your products or your services. You also get an option to respond quickly to a social media post as soon as it is made to facilitate user experience, either with the option of an email, a phone call, or with an online chat session.

Here are the steps given in brief for integrating Salesforce with Facebook-

Setup account Method

  • Log in to your Developer Account
  • Go to Setup > Build > Develop > Pages
  • Click on “New” option from the redirected window screen.
  • Create a Visualforce Page
  • Paste the code given in this article under the detailed steps part.
Related Post:  How To Integrate Salesforce With Other Applications

Quickfind Method

  • Log in to your Developer Account
  • Go to Setup > enter the social account you want to add > Social Accounts > Contacts Settings > Select the social networks you have access to.
  • Click on Save and done.

Lets discuss in detail, how to integrate your Salesforce CRM with Facebook, the most commonly used social media platform.

How to Integrate Salesforce with Facebook?

Here is a step by step guide to integrate the best CRM with the best social media platform-


Login to your Salesforce developer account


Go to the option of Setup in your account, then Select Build and then develop and finally the ‘Pages option’ which is the 8th option as you can see in the screenshot given here-

Integrate salesforce with Facebook


Next option is to choose the alternative of ‘New’ from the window that appears, it would be similar to the one given in this screenshot, however, this screenshot talks about editing site option, your pages window would have the similar attributes-

Integrate Facebook Lead Ads With Salesforce CRM


Create a Visualforce page in your Salesforce account with the name, let’s say ‘Facebook Integration’, in the field type Facebook Integration. In the name field that is there type ‘Facebook Integration’.

With the help of a screenshot taken from the website of Evernote let us see what the visualforce page window looks like-

Integrate Facebook Lead Ads With Salesforce CRM

The image clearly illustrates as to where all the options are present in Salesforce Visualforce page window.


You are then required to paste this code as it is given here in the visualforce page editor

<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></apex:pageBlockSection></apex:pageBlock></apex:page>

The screenshot taken from the website of Salesforce depicts the window that will appear to you while you are editing your Facebook Integration field, it will be something similar to this only-

Related Post:  Why Your CRM Needs Artifical Intelligence?

Integrate Facebook Lead Ads With Salesforce CRM

This is definitely a long-lasting way to integrate your Facebook account with your Salesforce account. However there lies an easier way as well for this, for the beginners i.e. Quick find method. Let us see the step by step approach how it works actually –

Quick find Method

Here are the steps you need to follow to integrate Facebook with Quick Find method-

  • From the Setup menu in your Salesforce Account, enter the Social Accounts that you want to add to the Quick Find box.Integrate Facebook Lead Ads With Salesforce CRM
  • Thereafter select the ‘Social Accounts’ and ‘Contacts Settings’ option given right there.Integrate Facebook Lead Ads With Salesforce CRM
  • Choose the social networks that your association can currently access. If you don’t follow this step, then by default, Salesforce selects all the social networks automatically.Integrate Facebook Lead Ads With Salesforce CRM
  • Click on Save tab at the end.Integrate Facebook Lead Ads With Salesforce CRM

Final Words

Well, I hope I have given you a better day by making your Facebook and Salesforce integration easy. These are some really easy steps to follow and I believe that the screenshots of the live window of Salesforce while editing the options has broadened your view and understanding.

Write a Comment

Notify of

Download & Learn from Our Whitepapers

Stop, read and acquire deep insights into complex issues