Few months ago, Facebook removed the page that allow us to generate codes for their official “Share” button. They replaced it with “Like” button instead. While “Like” button is fast and easy but we cannot add our comment along with the “Like” action. Therefore, in some cases, we still need the old Share button. Fortunately, the sharer.php still exists, so we can add the Share button using Facebook’s official script.
Here are the complete codes for all sizes of Facebook share button for those who are interested:
Share *count will only visible when there is at least 1 share
Codes:
Share
Share *count will only visible when there is at least 1 share
Codes:
Share
Codes:
Share
Codes:
Share
All codes above “shares” the current page. If you want to share another page or a specific page, you need to add a “share_url” attribute to the <a> tag. You need this too when you have multiple share buttons in a single page.
Example below shares our main website http://zenverse.net instead of this page.
Here’s how:
Share
If you have multiple share buttons in a single page, you just need to include the <script> element once.
Hope this helps.
Thanks a lot buddy….you really rockz….
Really great button I was looking for. Thanks a lot!
great button
Hello. I really need your help. Never done this before. I’m trying to add share button to my page on facebook, and button shows up but nothing to share.. don’t know where exactly to copy page url in html code, or do I need to copy it at all. Pretty much confused. Could you explain it for me please, because I just can’t make it, just can’t. Thank you.
Thank you, I got it. :D
Yeah ofcourse like button alone is not enough.For comments we need share button as well.Thanks for sharing such an informative post.
THANK YOU! I was looking for share button code for a specific URL, so that last one you added to this post helped tremendously. Thanks!
It is not working now also it is not working on you page. I remember it was working before about 2 months, now I see only ‘share’ with out count or link on it !!! any idea ??
wonderful i have been searching for this old button for a while. thanks very much.