Add Responsive Facebook Like Box Widget In Blogger - Stack Of Codes

Breaking

Ads

Thursday 25 October 2018

Add Responsive Facebook Like Box Widget In Blogger

Add Responsive Facebook Like Box Widget In Blogger



There are tons of social sharing site available all over the inter net but Facebook is the most important among them, The like box they provide helps a blogger to reach their readers immediately in free of cost it also helps to provide better support to your user if you are running a client based niche blog. The like box widgets which are available on the internet are based on iframe which doesn't have responsive featyre also loads very slowly making your blog slower than snail, the widget which we are going to share is based on pure script and doesn't requires any iframe which makes it unique and fast loading., This version of the facebook like box is very much customizable and easy to edit. Lets move further and see How to Add Responsive Facebook Like Box Widget In Blogger.


Adding The Widget:

The First thing you need to do is to login into your Blogger account and
 go to >> Layout >> Click add a gadget any where into your 
layout >> Add HTML/JAVASCRIPT widget and paste the below code in the blank space.








<center><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&appId=1760806057479925";

  fjs.parentNode.insertBefore(js, fjs);

}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-page" data-href="https://www.facebook.com/USERNAME/" data-width="350" data-height="230" data-hide-cover="false" data-show-facepile="true" data-show-posts="false"><div class="fb-xfbml-parse-ignore"></div></div></center>


.

Change the text  USERNAME with your Facebook username.



No comments:

Post a Comment

Topics

PHP (27) CodeIgniter (22) SQL (4) Facebook (3) HTML (3) Blogger (2) Constructor (2) Destructor (2) Google (2) How to (2) Aadhaar (1) Agent (1) Browser (1) CSS (1) Cakephp (1) Constants (1) India (1) Ip address (1) JS (1) Jquery (1) Meta Tags (1) Robots (1) Scraping Data (1) escape_str (1) htaccess (1) iS mobile (1) javascript (1) mysqli (1)