Tweet Button - count is showing very low values and most of the time 0, when there are a lot more tweets


#1

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


#2

I was just able to increment the counter on http://www.1stwebdesigner.com/design/introduction-dark-website-design/ so it looks like things are working correctly now. My gut feeling is that when the article was first posted, your server didn’t respond with a 200, or responded too slowly for the crawler’s HEAD request. Were there any deploys or server outages around then?


#3

Hi @kurrik and thanks for your reply.

Since that one article is already a few days old, the counter is working.
The problem is still persistent on the most recent posts.

Server is working fine and returning 200 always.

Any other ideas?


#4

We have a similar problem with the following URLs where we have inserted the twitter_share button
however we have noticed that those buttons are stuck with the same value they had 24 hours ago.

Any ideas?
http://elrincondeendesa.pe/nota2011/proyectoarboleda/
http://elrincondeendesa.pe/nota2011/proyectolaronda/
http://elrincondeendesa.pe/nota2011/proyectobibliotecas/
http://elrincondeendesa.pe/nota2011/proyectofamiliares/


#5

Any hope to get this issue resolved (or at least tracked down to the source of it)?
Unfortunately it’s still persistent - which is quite bad.


#6

Do you have site reliability issues? It seems like the site is down right now.


#7

We didn’t have any site issues lately - are you sure the site was “down”?


#8

Yes, could not even connect to the server.


#9

I should note it was transient, but if the crawler sees that it could be causing the issue.


#10

Thanks for helping me out.
I’ll monitor this behavior on the next article release.

Just one last question - what is the regular interval for the count to update to watch out for (assumed the page is returning always 200)? (or is it “real-time”?).


#11

Should be only a few minutes to see a count update.


#12

#13