Jump to content

including a facebook-developer-code on a wp-site


Maze

Recommended Posts




hello dear friends


if 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-pages

Initialize 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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.