Hunza-Pakistan

Monday, December 7, 2015

How to Add Facebook Comment or like plugin


Facebook comment or like plugin is very helpful tool to use social media on your website or blog which is used for online earning or earning from internet. People can like or comment on you site or blog using their Facebook account even they can share your content to their friends or friends of friends.
Step BY Step Procedure
Step 1
Copy the script given below and paste in the body of your website
<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/sdk.js#xfbml=1&version=v2.5";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Step2
Put these lines for your plugin wherever you want the to appear on your website or blog.
<div class="fb-comments" data-href="PASTE YOUR URL HERE” data-numposts="5"></div>

Copy  the link (url)  of a website or blog  you want to use with the comments plugin. And paste in above code inplace of PASTE YOUR URL HERE

1 comments:

  1. Nice quality information on the topic, if you want lean more about blogging, seo tricks and tips visit my blog you will find some unique article.

    Latest blogging tips and tricks 2015 for new blogger

    ReplyDelete