URL count not updating

BeeRich33
@BeeRich33 Rich F

Hi folks. I have a tweet button on a website that isn't updating its count. Here is my syntax:

Tweet

When this is clicked, I get into the Twitter post page, with the Textarea filled out propertly. The bit.ly URL in the data entered into the textarea resolves properly, so I am not sure why it isn't working. The right information is indeed going through the system, but Twitter isn't registering the url as being posted.

Any idea what I am doing wrong?

Cheers

1 year 1 week ago

Replies

BeeRich33
@BeeRich33 Rich F

Ah dang, that didn't post. Maybe I should check it next time. Stupid me...here's the syntax:

  1. <script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
  2. <div>
  3.    <a href="http://twitter.com/share" class="twitter-share-button"
  4.       data-url="http://www.mydomain.com/index.lasso?page=picdetail&pid=287"
  5.       data-text="I found this on www.mydomain.com #myhash"
  6.       data-related="mdOL:mydomain.com - Abba dabba doo"
  7.       data-count="horizontal">Tweet</a>
  8. </div>
1 year 1 week ago
gerbenjacobs
@gerbenjacobs Gerben Jacobs

Caching. It can take some time for the real results to show.

1 year 1 week ago
BeeRich33
@BeeRich33 Rich F

OK but some of these are taking weeks, if at all. Is that normal? What should I expect?

1 year 1 week ago
BeeRich33
@BeeRich33 Rich F

Is there anybody home here? Is this an actual ticket, or have I missed something? Where can I file a ticket? This API seems to have dropped the ball somewhere.

1 year 1 week ago
episod
@episod Taylor Singletary

When sharing examples like this, it's best to include the actual domain names that you're using so that they can be researched.

Since I'm helping you with a specific scenario ( http://www.huntingcamponline.com/index.lasso?page=picdetail&pid=287 ) let's talk about this specific scenario.

To test I've created a tweet utilizing the tweet button on that page, resulting in this tweet: https://twitter.com/#!/oauth_dancer/status/101041454910148609

After about 15 minutes of caching passed by, in addition to flushing my browser's cache to ensure that my browser was fetching the most current count, the site at http://www.huntingcamponline.com/index.lasso?page=picdetail&pid=287 now indicates a tweet count of 2.

Sometimes when one issues test tweets with URLs with a dedicated test account or an account that hasn't "baked" into Twitter yet, the count will not increment.

52 weeks 10 hours ago
BeeRich33
@BeeRich33 Rich F

Taylor, I've posted this no less than three times and answered that question somewhere else.

So then how did you get that tweet? That isn't anywhere near what is produced by the Tweet button. This is what is generated:

I found this on www.huntingcamponline.com #hunting http://t.co/AK1m9ZS

You can copy urls all you want, but you're going against the very nature of the Twitter API as published.

This isn't about cache. Tweets for this site haven't shown up for over a month. Yes I restart my machine and I often turn off my browser cache as a developer should. The API as given in the Twitter pages doesn't generate what you put.

So go back to that url and show me what comes up when you click on the Tweet button. It should be exactly what's set in the syntax above. How you got what you did is very strange.

52 weeks 10 hours ago
episod
@episod Taylor Singletary

I used the tweet button on that same page and changed the content of the tweet while keeping the URL being used intact (like any end-user can): http://www.huntingcamponline.com/index.lasso?page=picdetail&pid=287

The Tweet Button's count function only takes the URL you explicitly specify in "data-url" into account for the count and will count any instance of that URL being tweeted by an account in good standing -- the rest of the content of the tweet is irrelevant as far as counting is concerned.

Do you have some links to other tweets that have this URL that aren't being counted?

52 weeks 10 hours ago
BeeRich33
@BeeRich33 Rich F
  1. Don't change a thing. The very reason to have a button is to lead people through this. Not a single person has done what you have done, nor should it be expected that they are going to do that. You've taken the need out of the button.
  2. That URL never shows up. The t.co system takes over and shortens it. THAT is where the problem lies. The shortening is messing up the referenced URL.
  3. Every url in the system that gets shortened by t.co has no count. Every single one.

Like I said, post what you find and you'll find all the answers in there. Don't change a thing. Walk through it and you'll see that it does nothing.

  1. data-url="http://www.huntingcamponline.com/index.lasso?page=picdetail&pid=287"

That is the url that's posted, but it gets shortened and I want to be able to use that URL (the short version), but Twitter's shortening tool kills it. That should also augment the count, but it doesn't. I find it strange I'm the first one bringing this up.

52 weeks 10 hours ago
episod
@episod Taylor Singletary

As far as the tweet count service goes, your URL whether wrapped with t.co or not is exactly the same thing. All tweets issued from the Tweet Button that contain URLs will have them wrapped by t.co.

When a user performs a search for the fully qualified URL: http://www.huntingcamponline.com/index.lasso?page=picdetail&pid=287 it will match both t.co-wrapped links as well as naked links.

Are you sure that this specific URL, complete with the pid=287 and page=picdetail parameters has been tweeted by public accounts more than twice?

As for the tweet text being alterable: completely by design. A user should always be able to change the text of a tweet they are going to issue from their own account. Your goal might be to have them tweet the exact phrase you've prepared, but the user is control as to what will actually be tweeted at all times.

Just to be sure, are you wanting to the count to reflect tweets issued about the specific page they are appearing on or count all tweets with URLs pointing at the www.huntingcamponline.com domain?

52 weeks 9 hours ago
BeeRich33
@BeeRich33 Rich F

The t.co wrapping is the only thing that's going wrong. OK, do the following:

Pick any page in that system. Tweet it just as it comes through (it will be shortened). Watch it not get augmented.

This whole system has been up for months with Tweet buttons integrated just the way it is. Nothing is showing up. Only direct posts with the full GET urls (...?page=picdetail&pid=XXX) are counted. That's why this one is showing 2, as I've chosen it to demonstrate the problem.

This is not about a tweet being editable. Even the textarea in the resulting Twitter domain Tweet submission page has the shortened URL. Like I said, not a single person has modified the URLs, as the button completely changes it. That's the very point of the button. Nobody is going to go back and grab the fully qualified URL when the button progress takes it and shortens it.

The button is about the individual posting, not the domain. The top page has the domain tweet button, and that works.

Please, look into this. Shortening the individual post URLs is messing things up. All the syntax and pointers do their job (copy the shortened URL and you'll see it goes right back to the proper huntingcamponline page), but the counters don't augment.

Cheers

52 weeks 9 hours ago
ravi21job
@ravi21job Ravi Prakash

hey rich ....Thanx for updating but dis code is also not working.
Can u give another code so that the counter of the can be updated.

46 weeks 4 days ago
BeeRich33
@BeeRich33 Rich F

Since posted, Twitter has done something. It is now working. They had a related issue that might have been the problem. It seems to be working now.

46 weeks 4 days ago
Alltopstartups
@Alltopstartups Thomas Oppong

My twitter button stopped counting tweets about 5 days ago. I have tried all i can, read most of the solutions to this problem, but cant get it ti to count. I use Digg Digg social bookmark plugin. My site runs on WordPress. - http://alltopstartups.com

45 weeks 6 days ago
BeeRich33
@BeeRich33 Rich F

Ya they're messing with things in the background. They had a related issue with their new t.co recgonizing the underlying proper url. Submit a bug as they seem to pay attention to that.

45 weeks 6 days ago
devvelu
@devvelu velmurugan

Hi,

I am using the below code for twitter in my site. Its taking more time to update count

Tweet

Please help me.

26 weeks 1 day ago
hiralnct
@hiralnct hiral solanki

I face the same problem does anyone have the solution?

25 weeks 6 days ago
bonnieharrishar
@bonnieharrishar Bonnie Harris

yes i have the same problem wonder why

25 weeks 5 days ago
mcampbellSEO
@mcampbellSEO Michael Campbell

I'm having this issue too. At first I thought I needed to use a more recently provided tweet button, but still having this issue? Tweets go through, but no counting on the button?

Here's the code:
Tweet
!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");

Is there something I did wrong?

Any help would be appreciated.

25 weeks 5 days ago
BeeRich33
@BeeRich33 Rich F

It seems three people started having the same problem. Sounds like a Twitter problem. Find their support account on Twitter and let them know directly.

25 weeks 5 days ago
episod
@episod Taylor Singletary

We're tracking a number of Tweet Button counting issues in this super-ticket: Issues with Tweet Button Counting -- I recommend following it for our progress on this.

25 weeks 5 days ago
scots_subrosa
@scots_subrosa Subrosa

Hello. Until 3 days ago my blog Tweet button worked fine. Now it registers zero although I can retweet to Twitter. That registers but on refreshing page the number returns to zero. I tried pinging but it said my URL wasn't registered. Checked that to find it is but says there are no tweets.

I know I get several re-tweets from each post as I see them on Twitter.

Haven't installed any new software or anything.

I'd be pleased if you could help. http://subrosa-blonde.blogspot.co.uk/

20 weeks 1 day ago
BaBaBauerzy
@BaBaBauerzy Josh Bauer

Is this still an ongoing issue? I'm not seeing any of my tweet button counts updating at all. Something I am missing?

Tweet

14 weeks 4 days ago
mauromol_IT
@mauromol_IT Mauro Molinari

I hope this is the right place to provide some feedback for https://dev.twitter.com/issues/48.
I read that yesterday an update was posted saying that the Tweet count infrastructure has been updated to provide a more robust and accurate tweet count.
However, I still have problems with tweet counting on my website.

Consider the following URL:
http://www.utopicmusic.com/permalink/post/165299
If you visit this page, you'll see the Tweet button widget. The button is working fine, since if I click on it I can tweet the URL of the page. However, the tweet count stays to 0. If I click on "0", the tweets that have been made are displayed: there's just one right now, so I would expect to see "1" and not "0"! I tried to wait several days, with different browsers, clearing cache and so on, but nothing helped. I also tried to add the "data-counturl" element to the anchor I'm using to display the tweet widget, although it should be useless since the "data-url" contains exactly the URL I want to share and count, but it didn't help either.
So, any help to determine why the counting is still not working would be appreciated.

Mauro.

10 weeks 1 hour ago
episod
@episod Taylor Singletary

I think in your case it has to do with your URLs -- http://www.utopicmusic.com/permalink/post/165299 redirects to http://www.utopicmusic.com/main/Main.html#post/165299 but when our crawler tries to go there it can't recognize the Tweet Button or your content -- because you have a "#" in your URL which web browsers typically only leverage. Our crawler can likely only get to http://www.utopicmusic.com/main/Main.html.

9 weeks 6 days ago
mauromol_IT
@mauromol_IT Mauro Molinari

I know. But consider that:
- we are using Google Web Toolkit: the use of "#" in the eventual URL is unavoidable to hook an UI state to a certain resource identifier
- we are even supplying support for "permalinks" that do NOT contain the "#" to try to address this problem

Moreover, given that:
1) we are sharing the http://www.utopicmusic.com/permalink/post/165299 URL (and not the http://www.utopicmusic.com/main/Main.html#post/165299)
2) tweets produced by the Tweet button do contain that URL correctly
3) we are even enforcing that the counter has to count tweets about http://www.utopicmusic.com/permalink/post/165299 by specifying the data-counturl attribute
=> we are expecting the counter to count that URL and not to try to do some (non-)smart resolution of that URL...

Otherwise we are forced to hide the tweet count if there's no way for it to work correctly. We can't certainly change the framework we're using to develop the entire website!!

Thanks for your support.

9 weeks 6 days ago
episod
@episod Taylor Singletary

You may want to hide the tweet count then or offer search engine friendly versions of your post at the permalink page instead of a redirect to content that cannot be consumed by a crawler.

This is all that our crawler can see when we pull that URL:

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3.    <head>
  4.  
  5.        <!--                                           -->
  6.        <!-- Any title is fine                         -->
  7.        <!--                                           -->
  8.        <title>UtopicMusic</title>
  9.  
  10.         <!--                                           -->
  11.        <!-- The module reference below is the link    -->
  12.        <!-- between html and your Web Toolkit module  -->        
  13.        <!--                                           -->
  14.        <meta name='gwt:module' content='com.utopicmusic.gwt.site.Main'/>
  15.  
  16.    </head>
  17.  
  18.  <!--                                           -->
  19.    <!-- The body can have arbitrary html, or      -->
  20.    <!-- we leave the body empty because we want   -->
  21.    <!-- to create a completely dynamic ui         -->
  22.    <!--                                           -->
  23.    <body>
  24.  
  25.       <!--                                            -->
  26.       <!-- This script is required bootstrap stuff.   -->
  27.       <!-- You can put it in the HEAD, but startup    -->
  28.       <!-- is slightly faster if you include it here. -->
  29.       <!--                                            -->
  30.       <script type="text/javascript" src="main.nocache.js"></script>
  31.  
  32.         <!-- OPTIONAL: include this if you want history support -->
  33.       <iframe id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
  34.  
  35.    </body>
  36. </html>

Since we can't detect a Tweet Button there, we don't spend the resources counting the tweets pointing to it.

9 weeks 5 days ago
mauromol_IT
@mauromol_IT Mauro Molinari

Providing a search engine friendly version of the post could be an idea, but if I put it at the URL I want to share, the result is that I'm tweeting a URL to a resource that people shouldn't see, since I want people to see the actual resource (the one using the GWT interface).

May a combination of data-url and data-counturl be of any help here? If I specify the GWT URL as the data-url and a search engine friendly version as the data-counturl, will it work?

9 weeks 5 days ago
Robercalvarez
@Robercalvarez Rober C. Álvarez

Hello! I´ve got the same problem.
I´ve got a lot of diferents (similar) buttons in the same page. With only one script.

  1. <div><a class="twitter-share-button" href="http://twitter.com/share?url=http://goo.gl/TkLSP&amp;text=Máster Universitario en Acceso a la Abogacía  &amp;via=UAHes&amp;lang=es&amp;hashtags=Master&amp;dnt=true">Twittear</a>
  2.           <script type="text/javascript">!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>
  3. </div>
  4. <div><a href="https://portal.uah.es/portal/page/portal/posgrado/masteres_universitarios/repositorio/soc_jur/BBB0C6A4D8A46F4EE04400212814D826" target="_blank">Administración de Empresa Internacional( MBA)/Internacional Bussines Administration (MBA)*</a>
  5. </div>         

The count don´t found, Please Help. :´(

Web: http://formamosprofesionales.com/estudios-posgrado/ciencias-sociales-juridicas.html

5 weeks 6 days ago
Robercalvarez
@Robercalvarez Rober C. Álvarez

Hello!! Is there anybody home here?

4 weeks 4 days ago
DennisPHerrera
@DennisPHerrera Dennis Herrera

new to twitter so I won't be to quick in responding for a bit, thanks for twitting?

4 weeks 4 days ago