logo

Facebook custom share button

Date: 2011-06-16

Here is en example code on how to make a custom facebook share button.

Code:

<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a href='http://www.facebook.com/share.php?u=<url>' onclick='return fbs_click()' target='_blank'><img src='SOURCE_TO_YOUR_IMAGE' alt='facebook' title='Share on facebook' /></a></script>

ubuntudog.com © 2017 | About | Sitemap | Contact