We currently have an issue with the Tweet Button counts on http://1stwebdesigner.com
The counter is not updating correctly, showing very low values (most of the posts even just 0) tweets for a specific url.
Taking this example now, which is the latest article:
http://www.1stwebdesigner.com/design/introduction-dark-website-design/
When searching on Twitter for mentions (for @1stwebdesigner), I’m seeing quite a few posts, but the button still showing 0.
Even after 1-2 (sometimes more) days, the count is still showing zero. (check the bottom of page 2 http://www.1stwebdesigner.com/page/2/ , where counts start to be accurate).
Currently I’m parsing this json object (in php) and hide the button, if the count is lower than 100:
http://urls.api.twitter.com/1/urls/count.json?url=http://www.1stwebdesigner.com/design/introduction-dark-website-design/
The code for the tweet button we use is this one (line breaks added for better readability):
<a
class="tweetCount twitter-share-button"
href="http://twitter.com/share"
data-url="http://www.1stwebdesigner.com/design/introduction-dark-website-design/"
data-counturl="http://www.1stwebdesigner.com/design/introduction-dark-website-design/"
data-text="An Introduction To Dark Website Design"
data-count="horizontal"
data-via="1stwebdesigner"
>Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
note: “data-counturl” was added later, since I’ve read somewhere, that this helped on another page
I already checked the response headers with “curl -I http://www.1stwebdesigner.com/design/introduction-dark-website-design/”, which give “OK” as response, so this should be fine I guess.
example response:
$ curl -I http://www.1stwebdesigner.com/design/introduction-dark-website-design/
HTTP/1.1 200 OK
Server: cloudflare-nginx
Date: Tue, 08 Nov 2011 14:00:25 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.3.8
X-Pingback: http://www.1stwebdesigner.com/xmlrpc.php
Link: <http://www.1stwebdesigner.com/?p=49195>; rel=shortlink
Vary: Accept-Encoding
Vary: User-Agent
Can anyone help us with this issue, since it’s quite embarrassing for such a big site to show the tweet button for posts older than 2 days with zero tweets.
Thanks in advance,
Daniel