Reputation: 483
I'm trying to embed the most recent tweet/s from a user's public stream. I did this with
$.getJSON('http://twitter.com/statuses/user_timeline/'+user+'.json?callback=?', function(data) {
console.log(data)
...
}
This doesn't work anymore. I thought it was due to the tweets all being old, but after swapping the name out for a active account it didn't work either.
I do not want to manually embed a tweet. I preferably do not want to use a twitter widget.
I've tried tweet.seaofclouds.com's twitter plugin, but it also doesn't find the old tweets (demo)
So what I need is a method to show the latest tweet no matter the age for this user: @nietopmeisjes
Not a duplicate of: How to tweet using twitter api? (this is for android app) How to tweet using Twitter api (this is about iOS app)
Upvotes: 0
Views: 181
Reputation: 15097
Twitter has released a new version of api, 1.1. And now each API endpoint requires authentication via OAuth.
You can still use version 1 by changing the url to http://api.twitter.com/1/statuses/user_timeline
but this will stop working on March 2013 as noted in the link.
With 1.1 you have to use server side application to get OAuth token and retrieve your tweets. Make sure you follow the Display Requirements and be careful of new api limits. Or just remove twitter widget from your app.
Upvotes: 1