Twitist Forums
Facebook comments section isnt showing in my website? - Printable Version

+- Twitist Forums (http://twitist.com)
+-- Forum: Facebook forums (/forum-14.html)
+--- Forum: Facebook apps (/forum-22.html)
+--- Thread: Facebook comments section isnt showing in my website? (/thread-139284.html)



Facebook comments section isnt showing in my website? - scuba_diver_will - 04-12-2014 11:35 PM

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?


- Rayray S - 04-12-2014 11:50 PM

Don't include your javascript after the body. Include it anywhere between the header tags.