Facebook like button not working!

I had few troubles implementing facebook like button in my website. Infact i got the code  from facebook in html5 and the like button never showed up.

My website was built using smarty and i had to use { literal } to wrap all javascript tags. Only then it worked. Even after it showed up, it disabled the tweet count and google +1  buttons making them unclickable.

Keep in mind that when you implement facebook like in your website, make sure you add data_href value

<div data-href="http://example.com" data-send="true"
data-layout="button_count" data-width="200" data-show-faces="false"></div>

and sometimes facebook like do really need the Javascript SDK for it to work. To include the source file, just add this line.

 <script src="http://connect.facebook.net/en_US/all.js"></script>

Thats it! The like button should work without any problems. Make sure you dont miss div or any html tags.

Similar Posts:

Prabhu Balakrishnan

I am cool and friendly internet entreprenur blogging since 2005. My interests are wordpress, PHP, linux servers, SEO and travel. Besides computers, i am crazy for video games, travel and a cup of hot coffee! I am born in Coimbatore, India but i currently live in Budapest, Hungary. Feel free to contact me folks!

Leave a Reply

Your email address will not be published. Required fields are marked *


8 × = forty eight

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please wrap all source codes with [code][/code] tags. Powered by