Get twitter working again

by morphiumdeus, (4584 days ago)

Hey,

If you want to use the twitter timeline with the new twitter API, just replace line 93 of spouts\twitter\hometimeline.php (starting with $timeline = $twitter...) with those 2 lines:

$twitter->host = "https://api.twitter.com/1.1/";
$timeline = $twitter->get('statuses/home_timeline', array('exclude_replies' => 0, 'count' => 50));

Look at the twitter API (https://dev.twitter.com/docs/api/1.1/get/statuses/home_timeline) if you want to change parameters such as exclude_replies.

md

RSS Feed of thread