This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facebook comments section isnt showing in my website?
04-12-2014, 11:35 PM
Post: #1
Facebook comments section isnt showing in my website?
Hey, I am trying to implement a facebook comments section to my website, I have created a div class for the comments which works absolutely fine. I try to simply copy and paste the code facebook have given me on the developer.facebook site and it simply isn't showing up at all. Heres the code and what it tells me to do:

1.
Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.

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

2.
Place the code for your plugin wherever you want the plugin to appear on your page.

<div class="fb-comments" data-href="http://mysite.com/" data-width="728" data-num-posts="3" data-colorscheme="dark"></div>

Am I missing something?

Ads

Find all posts by this user
Quote this message in a reply
04-12-2014, 11:50 PM
Post: #2
 
Don't include your javascript after the body. Include it anywhere between the header tags.

Ads

Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)