Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter Tweet Button does not count

Tags:

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. (after you tweet, it is incremented client-side, but if you press F5, it will be zero again)

This is my really simple code to include the button:

<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.whattheplace.com/Show/1/" data-count="vertical">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

The specified URL (http://www.whattheplace.com/Show/1/) is a regular URL returning a web page with HTTP code 200, i.e. no redirection or the like that could maybe confuse Twitter.

I've prepared a small example on http://www.whattheplace.com/static/tweetbutton.html where you can see the problem. On the "real" page at http://www.whattheplace.com, the Tweet Button is wrapped by AddThis, but the problem is exactly the same.

I'm thinking that it might have something to do with the new Twitter URL shortener (t.co), however I can't prove it and it seems to work on other people's pages just fine.

like image 374
ChrisM Avatar asked Sep 27 '10 16:09

ChrisM


People also ask

Why are my Tweet buttons not working?

Trouble sending Tweets can often be attributed to a need to upgrade your browser or app. If you're having trouble Tweeting via the web, make sure you're using the latest version of your browser. If you can't Tweet with an official Twitter app, check to make sure you've downloaded any available updates.

How do I fix my Tweet count?

There is no way to hide a Twitter tweet count, but we can change the tweet counter by deleting tweets. Twitter does not let you access and delete beyond the most recent 3,200 tweets. So, on your Twitter Timeline, neither you can view nor delete your old tweets manually to change the tweet counter.

How does Twitter count number of Tweets?

As stated above, a new impression is counted on a tweet every time that tweet shows up on a user's Twitter feed (also known as their "timeline"). So, if 30 of your followers logged on Twitter and saw your tweet, that tweet has made 30 impressions.


1 Answers

There are a few possible problems related to this. One of them is that if the link is shortened, Twitter won't add it up unless you add the "counturl" url property.

Also, Twitter doesn't count the tweets coming from protected accounts (accounts that don't share their tweets).

Please let me know if none of this offers the solution.

Cheers!

like image 67
Claudiu Avatar answered Sep 19 '22 15:09

Claudiu