Facebook Page Plugin

edited February 2016 in Other
Hi there,

I'd like to include a small FB Page Plugin into one site of my website. I did like FB Developer Site adviced, but it doesn't work in beTheme.

This is what I did:

1. I included the JavaScript SDK in "Custom JS" at BeTheme Options.
(FB says:  "Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.")

This is the Code:

<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;
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


Into the Side i tried to put the code in a "Code" Element and alternative into an "Visual Editor", it doesn't show the Box on the Side:

<div class="fb-page" data-href="https://www.facebook.com/rheinkult/"
data-tabs="Ratings" data-width="500" data-small-header="false"
data-adapt-container-width="true" data-hide-cover="false"
data-show-facepile="true"></div>


What should I do instead? Thank you very much for your help!

Best regards
Ben

Comments

Sign In or Register to comment.