Search code examples
javascriptjqueryfacebookfacebook-likepinterest

Displaying Facebook Like Button Count


Facebook Like button displays by default without the like count, how do you load it with by default to display count, even when 0?

 <fb:like href="url" send="false" layout="button_count" width="100px" show_faces="false" font=""></fb:like>

And also how about Pinterest? It's a similar concept.


Solution

  • The iframe version contains the display count even when its a zero.

    <iframe src="//www.facebook.com/plugins/like.php?href=YOUR_URL&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21&amp;appId=401883116500986" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe>