Twitter counter not working


#1

I am using the official Tweet Button from Twitter to allow users to share my site.

The button itself is working just fine, however the counter doesn’t work and stays at zero all the time.

This is my code to include the button:

<a href="https://twitter.com/share" class="twitter-share-button"  data-url="http://www.kitchenprague.com/news.php?id=2" data-text="Some text">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

And this is the header for the specified page:
HTTP/1.1 200 OK =>
Date => Thu, 19 Apr 2012 20:17:27 GMT
Server => Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8b DAV/2 PHP/5.3.10
X-Powered-By => PHP/5.3.10
Vary => Accept-Encoding
Cache-Control => max-age=0
Expires => Thu, 19 Apr 2012 20:17:27 GMT
X-UA-Compatible => IE=Edge,chrome=1
Content-Length => 880
Connection => close
Content-Type => text/html; charset=utf-8

What am I doing wrong?


#2

While there are some known issues with Tweet Button counts, in this case it seems that you’re presenting a tweet button with a “www.” based URL when your site redirects consistently to a non-www subdomain. Consider configuring your tweet button to utilize the canonical URL for your site instead.


#3

#4