http://twitter.com/statuses/user_timeline/12345.json?callback=twitterCallback2&count=3

sbucompsc
@sbucompsc SBU-Computer Science

http://twitter.com/statuses/user_timeline/12345.json?callback=twitterCallback2&count=3 is no longer working. What should be the new URL?

1 year 27 weeks ago

Replies

episod
@episod Taylor Singletary

See this FAQ entry for more information:

Why am I getting a HTTP 404 for my timeline feed?

If you're requesting a timeline URL that used to work but now does not, you are likely using an outdated URL that has been retired. In March of 2012 we announced that "unversioned endpoints," GET statuses/public_timeline, and the v1 REST ATOM response format were deprecated and would eventually cease functioning. In early October 2012, we turned off these endpoints.

You can identify unversioned endpoints by examining their URL: http://twitter.com/statuses/user_timeline/twitterapi.rss is missing both the API version and the "api" subdomain. The correct URL for the same request would be https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=twitterapi

Please note that there is no support for the RSS response format in API v1.1. Properly versioned API v1 URLs will cease functioning in March 2013.

For help dealing with the Spring 2012 deprecations, see Following up on API housekeeping.

1 year 27 weeks ago
sbucompsc
@sbucompsc SBU-Computer Science

The link works directly on the browser but fails from within the website. Any other change that we may be missing?

  1.  <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
  2.  <script type="text/javascript" src="https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=12345&callback=twitterCallback2&count=3">  
1 year 27 weeks ago
paniaguai
@paniaguai paniaguai

Got the same problem. Within weeks, my embedded tweet is not appearing on my website.

  1. <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>  <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/12345.json?callback=twitterCallback2&amp;count=1">

Please we need HELP and a SOLUCTION URGENT ! thx

1 year 26 weeks ago
paniaguai
@paniaguai paniaguai

got it !

https://dev.twitter.com/discussions/8555

@WyandanchLib WyandanchLib
Oh snap I got the issue resolved. Thanks @episod for posting information
Previous working code
"html://twitter.com/statuses/user_timeline/WyandanchLib.json?callback=twitterCallback2&count=1"

New Updated Code
"htmls://api.twitter.com/1/statuses/user_timeline/WyandanchLib.json?callback=twitterCallback2&count=1"

5 days 20 hours ago reply

1 year 26 weeks ago
Lucklos
@Lucklos Luciƫn Loswijk

even with the code;
"htmls://api.twitter.com/1/statuses/user_timeline/WyandanchLib.json?callback=twitterCallback2&count=1"

it doesn't work. is that possible

1 year 26 weeks ago
topdesignmag
@topdesignmag topdesignmag

replace "htmls" with "https"

1 year 25 weeks ago
cantab_nj
@cantab_nj Nicole Janz

great, now it's working again!

1 year 24 weeks ago
WonderfulxSpoon
@WonderfulxSpoon James Spooner

Can anybody help me with Tumblr?
The theme I'm using posts 4 or 5 twitter statuses through on the page, but it's ceased to have function. In the main HTML body, I have managed to update the API link:

  1. {block:IfTwitterUsername}
  2. <div id="twitter" class="side pad">
  3. <h2><a target="_blank" href="http://www.twitter.com/{text:Twitter Username}">Twitter</a></h2>
  4. <div><script type="text/javascript" src="http://static.tumblr.com/me5sfsd/JrXleg5st/twitter.js"></script>
  5. <ul id="twitterfeed"></ul>
  6. <script type="text/javascript" src="https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name={text:Twitter Username}.json?callback=twitterCallback2&count=5"></script>
  7. </div></div>
  8. {/block:IfTwitterUsername}

But I'm not sure if that's right, and I think the script with it needs to be updated but I'm not sure what to change:

  1. function twitterCallback2(twitters) {
  2.   var statusHTML = [];
  3.   for (var i=0; i<twitters.length; i++){
  4.     var username = twitters[i].user.screen_name;
  5.     var status = twitters[i].text.replace(/((https?|s?ftp|ssh):\/\/[^"\s\<\>][^.,;'">:\s\<\>)]!])/g, function(url) {
  6.       return '<a href="'+url+'">'+url+'</a>';
  7.     }).replace(/\B@([_a-z0-9]+)/ig, function(reply) {
  8.       return  reply.charAt(0)+'<a href="http://twitter.com/'+reply.substring(1)+'">'+reply.substring(1)+'</a>';
  9.     });
  10.     statusHTML.push('<li>'+status+'<a class="time" href="http://twitter.com/'+username+'/statuses/'+twitters[i].id+'">'+relative_time(twitters[i].created_at)+'</a></li>');
  11.   }
  12.   document.getElementById('twitterfeed').innerHTML = statusHTML.join('');
  13. }
  14.  
  15. function relative_time(time_value) {
  16.   var values = time_value.split(" ");
  17.   time_value = values[1] + " " + values[2] + ", " + values[5] + " " + values[3];
  18.   var parsed_date = Date.parse(time_value);
  19.   var relative_to = (arguments.length > 1) ? arguments[1] : new Date();
  20.   var delta = parseInt((relative_to.getTime() - parsed_date) / 1000);
  21.   delta = delta + (relative_to.getTimezoneOffset() * 60);
  22.  
  23. //<span class="perm"><a href="http://twitter.com/'+username+'/statuses/'+twitters[i].id+'">'+relative_time(twitters[i].created_at)+'</a></span>
  24.  
  25.   if (delta < 60) {
  26.     return 'less than a minute ago';
  27.   } else if(delta < 120) {
  28.     return 'about a minute ago';
  29.   } else if(delta < (6060)) {
  30.     return (parseInt(delta / 60)).toString() + ' minutes ago';
  31.   } else if(delta < (12060)) {
  32.     return 'about an hour ago';
  33.   } else if(delta < (246060)) {
  34.     return 'about ' + (parseInt(delta / 3600)).toString() + ' hours ago';
  35.   } else if(delta < (4860*60)) {
  36.     return '1 day ago';
  37.   } else {
  38.     return (parseInt(delta / 86400)).toString() + ' days ago';
  39.   }
  40. }

Can anybody help?

1 year 24 weeks ago
episod
@episod Taylor Singletary

You won't be able to use API v1.1 in this way with unauthenticated Javascript-based requests.

Until March 2013, you can use API v1 this way though by changing this one line to:

  1. <script type="text/javascript" src="https://api.twitter.com/1/statuses/user_timeline.json?screen_name={text:Twitter Username}.json?callback=twitterCallback2&count=5"></script>
1 year 24 weeks ago
lwdlse
@lwdlse Leonidas Savvides

can have like you say 2 of "?" ?

1 year 22 weeks ago
ezejurado
@ezejurado Eze Jurado

I had the same problem but i fixed it!
just change

this > http://twitter.com/statuses/user_timeline/

with > https://api.twitter.com/1/statuses/user_timeline/

done!

bless!!

1 year 24 weeks ago
bobdc
@bobdc Bob DuCharme

And now, with the upgrade to API 1.1, all of our apps are broken again. Thanks, Twitter.

44 weeks 5 days ago
AdryGese
@AdryGese Adriano Genovese

I have your same problem with the update of the API 1.1 with the following error:
twittercallback2 ({"errors": [{"message": "Sorry, That page does not exist", "code": 34}]});

Someone has resolved?

44 weeks 2 days ago
beltman69
@beltman69 Studden Name Belts

Need help getting my feed to work since update to V1.1
my code is:

  1. <script src="https://api.twitter.com/1/statuses/user_timeline/airreal2.json?callback=twitterCallback2&count=6" type="text/javascript"></script>
  2.  
  3. // JavaScript Document
  4. function twitterCallback2(twitters) {
  5.   var statusHTML = [];
  6.   for (var i=0; i<twitters.length; i++){
  7.     var username = twitters[i].user.screen_name;
  8.     var status = twitters[i].text.replace(/((https?|s?ftp|ssh):\/\/[^"\s\<\>][^.,;'">:\s\<\>)]!])/g, function(url) {
  9.       return '<br><a href="'+url+'" target="tweet">view details</a>';
  10.     }).replace(/\B@([_a-z0-9]+)/ig, function(reply) {
  11.       return  reply.charAt(0)+'<a href="http://twitter.com/'+reply.substring(1)+'">'+reply.substring(1)+'</a>';
  12.     });
  13.     statusHTML.push('<li> <span id="twitter_time">posted '+relative_time(twitters[i].created_at)+'</span><br><span>'+status+'</span></li>');
  14.   }
  15.   document.getElementById('twitter_update_list').innerHTML = statusHTML.join('');
  16. }
  17.  
  18. function relative_time(time_value) {
  19.   var values = time_value.split(" ");
  20.   time_value = values[1] + " " + values[2] + ", " + values[5] + " " + values[3];
  21.   var parsed_date = Date.parse(time_value);
  22.   var relative_to = (arguments.length > 1) ? arguments[1] : new Date();
  23.   var delta = parseInt((relative_to.getTime() - parsed_date) / 1000);
  24.   delta = delta + (relative_to.getTimezoneOffset() * 60);
  25.  
  26.   if (delta < 60) {
  27.     return 'less than a minute ago';
  28.   } else if(delta < 120) {
  29.     return 'about a minute ago';
  30.   } else if(delta < (6060)) {
  31.     return (parseInt(delta / 60)).toString() + ' minutes ago';
  32.   } else if(delta < (12060)) {
  33.     return 'about an hour ago';
  34.   } else if(delta < (246060)) {
  35.     return 'about ' + (parseInt(delta / 3600)).toString() + ' hours ago';
  36.   } else if(delta < (4860*60)) {
  37.     return '1 day ago';
  38.   } else {
  39.     return (parseInt(delta / 86400)).toString() + ' days ago';
  40.   }
  41. }

Any ideas on how to get this working again would be greatly appricated..

44 weeks 2 days ago
tinacart
@tinacart El Tina

To my knowledge, there's no way to achieve the above anymore using JavaScript due to security upgrades. You'll have to develop a back-end means of achieving the same thing.

For example, to use 1.1 with PHP, you can head over to webdevdoor.com. He's got it working using the setup discussed here:

http://www.webdevdoor.com/php/authenticating-twitter-feed-timeline-oauth/

And you can format the appearance of the JSON response (and limit the number of tweets if you only want to show the last tweet) by following the guidelines here:
http://www.webdevdoor.com/javascript-ajax/custom-twitter-feed-integration-jquery/

43 weeks 3 hours ago
webeecho
@webeecho kevin thorne

hi,
this is crazy - why on earth would they do this!

I'm not having success:
I need the latest tweet on this page at the top by the birdy:
http://goborder.com
Here's my text page, but it's not working:
http://goborder.com/get-tweets1.1.php

42 weeks 1 day ago
posiactive
@posiactive DooGeon

thk, 1.1 -_-;;
All of example in Every book might be not working!!! anymore

40 weeks 6 days ago