Subscribe For Free Updates!

We'll not spam mate! We promise.

Showing posts with label Facebook. Show all posts
Showing posts with label Facebook. Show all posts

Mar 6, 2013

Facebook flike and fshare combined in single button

In this new flike code we can like and share in same flike button. After click on this like button popup box will appear and ask “Add comments” option. If you need to share your url means you should enter some comments and click “post to facebook” button. If you didn't give the comment it will store in your facebook activity. It'll also shows the count.



The new flike code is :


<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>

<div class="fb-like" data-href="http://www.yoursite.com/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="true" data-font="tahoma"></div>