Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter status API suddenly returning error '34'

Tags:

jquery

twitter

I have a script that gets the top 3 tweets from my feed. This was working just fine but now it is returning the following error in the JSON:

{"errors":[{"message":"Sorry, that page does not exist","code":34}]}

Twitter describes this as a classic 404 not found error, but I do not see any disruption from the API status' on the Twitter website.

Has something changed in the way we now fetch Tweets?

My code:

$.getJSON('http://twitter.com/statuses/user_timeline.json?screen_name=' + user + '&count=3&include_rts=true&callback=?', function(data) { });

Thanks.

like image 601
Michael Giovanni Pumo Avatar asked Mar 19 '26 13:03

Michael Giovanni Pumo


2 Answers

You're using the wrong link, https://api.twitter.com/1/statuses/user_timeline/jbrooksuk.json

Try this:

$.getJSON('http://api.twitter.com/1/statuses/user_timeline/' + user + '.json?count=3&include_rts=true&callback=?', function(data) { });
like image 152
James Avatar answered Mar 21 '26 02:03

James


I also found my Twitter feeds had stopped working today. It is the same problem for the links to RSS feeds.

This was working yesterday:

'http://twitter.com/statuses/user_timeline.rss?screen_name='.$screenName.'&count='.$limit;

but now the URL has to be:

'http://api.twitter.com/1/statuses/user_timeline.rss?screen_name='.$screenName.'&count='.$limit;
like image 44
Dan Avatar answered Mar 21 '26 03:03

Dan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!