Maze Posted June 9, 2014 Share Posted June 9, 2014 hello dear friendsif we want to put a facebook-fanbox on a wordpress-page - so that it looks like this here:http://www.designchemical.com/blog/index.php/frequently-asked-questions/social-media-tabs/ we can go like so: we take the test from the facebook-deeloper site:https://developers.facebook.com/docs/plugins/like-box-for-pagesInitialize the JavaScript SDK using this app: books-page... <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 = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=473241986032774&version=v2.0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> Include the JavaScript SDK on your page once, ideally right after the opening <body> tag. or do i need to inclue this<div class="fb-like-box" data-href="https://www.facebook.com/FacebookDevelopers" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div>` love to hear from you Link to comment https://forums.phpfreaks.com/topic/289073-including-a-facebook-developer-code-on-a-wp-site/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.