Search code examples
javascriptjquerytwittertweets

Loading twitter tweets 410 error


I'm having problems loading tweets. I want to load the tweets for ex. from "BachelorGDM". (https://twitter.com/BachelorGDM)

This is what I do in my javascript file:

var url = 'https://api.twitter.com/1/statuses/user_timeline/BachelorGDM.json?callback=twitterCallback2&count=4';

var script = document.createElement('script');  
    script.setAttribute('src', url);
    document.body.appendChild(script);

function twitterCallback(tweets)
{
    console.log(tweets);
}

When I try this I get this error:

GET https://api.twitter.com/1/statuses/user_timeline/BachelorGDM.json?callback=twitterCallback2&count=4 410 (Gone)

The strange thing is that this worked yesterdag :/
I already tried loading tweets from another user but same response.

Does somebody know what I'm doing wrong?


Solution

  • To use the newer version I found this tutorial: http://www.webdevdoor.com/php/authenticating-twitter-feed-timeline-oauth/