Activity Forums Salesforce® Discussions Salesforce to facebook integration

  • Manpreet

    Member
    April 18, 2017 at 12:46 pm

    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.

Popular Salesforce Blogs

Popular Salesforce Videos