Activity › Forums › Salesforce® Discussions › Salesforce to facebook integration
Tagged: API Integration, Facebook, Salesforce Integration
-
Salesforce to facebook integration
Posted by Bojja Sridhar on April 13, 2017 at 11:08 AMSalesforce to facebook integration
Manpreet replied 9 years ago 2 Members · 1 Reply -
1 Reply
-
Hi Sridhar,
Step1:
Go to Setup → Build → Develop → Pages
Click on the “New Button” within Salesforce to create a new page
Step2: Create a Visualforce page in Salesforce with the name Facebook Integration, in the field type
Facebook Integration, In the name field type Facebook Integration.Step3: Paste this code into the Visualforce editor within 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); js.id = id;js.src = “//connect.facebook.net/en_US/all.js#xfbml=1″;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=”http://example.com/comments” data-numposts=”5″ data-colorscheme=”light”></div>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:page>
Save this code within Salesforce and Open this Visualforce page.Thanks.
Log In to reply.