Got a facebook like button not working showing zero? Do you wan’t to add a facebook like button to your page that points to a facebook page (fanpage) rather than the page the likebutton is actually on? It is possible but you may have come across this facebook bug that I did.
Scenario’s are either:
- Use facebook like button generator to generate code for a like button (sometimes even this bugs out..)
- Use some service like ShareThis to generate code for a facebook like button
- It shows as Zero – Facebook likes ’0′ even if you know that URL (that you installed it on, or fb page) has likes
- It occasionally shows correct like count, but most of the time shows Zero  like’s
- Facebook Lint tool (object debugger)
- Error in the code you are copying across. It should be an iframe (unless you are using XFBML) like the code shown on the facebook lint tool (object debugger.) In fact the best way I found was to use the object debugger to make the iframe code and then adapt that using parameters from the facebook like button generator as the likebutton generator bugged out for me. MAKE SURE its pointing to the right url, use https if you can and point it to the page which validates in Lint tool.
- Page Problems. If your page doesn’t validate properly in the Lint tool (object debugger) then this is your issue, this is the likely situation if you are seeing it OCCASIONALLY show the right figure in your likes box, but mostly 0 [zero] likes. Page problems as far as I have experienced boil down to:
- Facebook soft deleting your page and not telling you. If you are experiencing this ZERO likes situation it might well be that facebook has actually discontinued your page without telling you, leaving it on your admin menu’s and leaving the likes/wall/everything in tact. This is confusing as hell and I wish they would formally tell/make it obvious. Reasons why your page gets deleted? I am sure there are a bunch. I repeat. Your page may look to you to be live, with likes and all – but if you are experiencing zero likes on your like button it might also be deleted. Get your friend to search for it in the search box, if it doesn’t appear, you’ve had it deleted!
- Restricted Content. We all love fangating, well its a working economy, but I have a sneaking suspicion it may occasionally cause a discrepancy in like button, potentially pointing a like button to an inaccessible page to the potential like’ee would mean facebook wouldn’t be able to access it and therefore show zero (whereas it might be showing you the proper number as you have access..)
<div align="left" style="height:70px"> <div id="fbbox" style="float:left;height:65px;width:55px;"> <iframe src="http://www.facebook.com/plugins/like.php?href=***YOURURL***&layout=box_count" scrolling="no" frameborder="0" style="height: 65px; width: 55px" allowTransparency="true"></iframe> </div> <div id="gbox" style="float:left;height:65px;width:55px;"><g:plusone size="tall" href="***YOURURL***"></g:plusone></div> </div>