Recently I changed Facebook Like buttons on several of my sites for AddThis counting buttons which include the Facebook count (or so I assume that is what the number in the box next to 'f like' is).

From a code point-of-view this is simpler and gives also counts and sharing buttons for other services. However, the counts were mostly reset to 0 or at least to a much lower number than before.

Why the discrepancy? What could the two things be counting differently?

  • Have you added this line to your pages' HTML tag: <html xmlns:fb="facebook.com/2008/fbml"> – paulmorriss Jun 15 '11 at 13:35
  • No... What does that do? It's not in the instructions (See link in the question). – Itai Jun 15 '11 at 14:04
  • Nothing helps so far... Is there any way to diagnose this? – Itai Jun 25 '11 at 19:17
  • WHat were the offending elements? I have the same problem. – user34002 Nov 25 '13 at 12:22

The page http://www.addthis.com/social-plugins/facebook-like-button states a different namespace to that mentioned above. It should be:

<html xmlns:fb="http://ogp.me/ns/fb#">

I've just tried it and it works fine, my counter is back.


Add this to the HTML tag at the top of each of your files:

<html xmlns:fb="http://www.facebook.com/2008/fbml">

This comes from this page: http://www.addthis.com/features/facebook-like-button

  • No effect... All counters remain the same. – Itai Jun 15 '11 at 14:24
  • Other people have had the same problem: addthis.com/forum/… Do you want to check to see if you haven't made the same mistakes. – paulmorriss Jun 15 '11 at 16:01

It is a bug. I discovered that some of the AddThis customization options cause the FB totals not to be added correctly. I have stopped using the offending elements.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.