Comments Rafael started the conversationJanuary 22, 2018 at 10:30pmHello,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. 3,066Andrew repliedJanuary 23, 2018 at 10:45amHey there,Thanks for reaching in,You can use this plugin for that. https://wordpress.org/plugins/facebook-page-feed-graph-api/Hope this helps,Regards1 Like 9,068Tahir repliedJanuary 23, 2018 at 11:18amHey 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 1 LikeRafael repliedJanuary 27, 2018 at 6:59pmTahir, 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 repliedJanuary 27, 2018 at 7:02pmThey 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> 9,068Tahir repliedJanuary 29, 2018 at 7:10amHey 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 Sign in to reply ...
Hello,
I'm following the instructions of facebook social plugins site.
And they tell me to add this code before adding the widget.
Where should I add it?
Thanks a lot.
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
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
Tahir, unfortunately, it does not work. Idk if did it right..
Is the JS code that one
And the div
Thanks for the advice, Andrew. But, if possible, i would prefer to install directly from facebook.
They provide an Iframe one, too...
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