Okay
  Public Ticket #1441651
Facebook Like box
Closed

Comments

  • Rafael started the conversation

    Hello,

    I'm following the instructions of facebook social plugins site.

    And they tell me to add this code before adding the widget.

    <div id="fb-root"></div>
    <script>(function(d, s, id) {  var js, fjs = d.getElementsByTagName(s)[0];  if (d.getElementById(id)) return;  js = d.createElement(s); js.id = id;  js.src = 'https://connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.11';  fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    Where should I add it?

    Thanks a lot.

  •  2,744
    Andrew replied

    Hey there,

    Thanks for reaching in,

    You can use this plugin for that. https://wordpress.org/plugins/facebook-page-feed-graph-api/

    Hope this helps,

    Regards

  •  8,470
    Tahir replied

    Hey Again,

    The JS Code can be added in the Google Analytics Section and the div is to be added where you want the like box to appear.  For Example Footer Widget. 

    Be.st


    ThemeNectar Support Team 

  • Rafael replied

    Tahir, unfortunately, it does not work. Idk if did it right..

    Is the JS code that one

    <div id="fb-root"></div>
    <script>(function(d, s, id) {  var js, fjs = d.getElementsByTagName(s)[0];  if (d.getElementById(id)) return;  js = d.createElement(s); js.id = id;  js.src = 'https://connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.11';  fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    And the div

    <div class="fb-page" data-href="https://www.facebook.com/razaoinadequada/" data-tabs="timeline" data-height="70" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/razaoinadequada/" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/razaoinadequada/">Razão Inadequada</a></blockquote></div>


    Thanks for the advice, Andrew. But, if possible, i would prefer to install directly from facebook.

  • Rafael replied

    They provide an Iframe one, too...


    <iframe src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Frazaoinadequada%2F&tabs=timeline&width=340&height=70&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true&appId" width="340" height="70" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe>

  •  8,470
    Tahir replied

    Hey Again, Hope you had a Great Weekend, 

    Iframe is much easier and can be added directly.  Try using a WP FB Widget Plugin to test whether your Facebook API is setup correctly or not .

    Be.st 


    ThemeNectar Support Team