Facebook Comments - Simple and not duplicating on all posts

How to insert Facebook comments in blogger without complication, not duplicating. Easy and simple.

1) Model > Edit HTML > Go > Expand Widget Models

2) Search </head> , and open body tag

3) Paste after open <body> before other tags:
<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/pt_BR/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

4) In any place of your code, where you want comments block write:
<div class="fb-comments" data-href="data:post.url" data-num-posts="10" data-width="470"></div>
5) If this way dont word, try this:
<div class="fb-comments" expr:data-href="data:post.url" data-num-posts="10" data-width="470"></div>

Just this.

If this tip works to you comment or share in social networks.

No comments:

Post a Comment