Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Thread Options Facebook Comments Plugin Not Working On Chrome

How to make Facebook Comments plugin work on Google Chrome? It shows up in IE9 and Opera, but for some reason isn't accessible on Google Chrome.

Thanks in advance!

Codes Used(From Facebook Developers Comments):

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

and

<div class="fb-comments" data-href="http://websiteurl....." data-num-posts="1" data-width="500"></div>
like image 375
user1091798 Avatar asked Jul 21 '26 03:07

user1091798


1 Answers

Have you added the facebook xmlns attribute in the html header? I had some problems in a webpage with this plugin untill I added it.

<html lang="en" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">

Besides, I use attributes in comments' div without the "data" and it works in all browsers:

<fb:comments href="WEB_URL" num_posts="10" width="500" notify="true"></fb:comments>
like image 129
Juanmi Rodriguez Avatar answered Jul 23 '26 17:07

Juanmi Rodriguez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!