User timeline returning inconsistent or incomplete list of tweets


I’ve create an app and php page that successfully pulls the last 20 tweets from a given username.

However, for a particular user account, I’m getting inconsistent and/or incomplete results.
you can see the results don’t match the user’s timeline:

The results seem to be returning the 20 OLDEST tweets, not the 20 most recent… or some other criteria I’m not sure what :slight_smile:

I’m using code straight off MattHarris’ site, and it has been working reliably for months.

$code = $tmhOAuth->request('GET', $tmhOAuth->url('1.1/statuses/user_timeline.json'), array(
  'include_entities' => '0',
  'include_rts'      => '1',
  'screen_name'      => $username,
  'count'            => 20,

if ($code == 200) {
  header('Content-Type: application/json; charset=utf-8');
  $data = $tmhOAuth->response['response'];
  	$data = $_GET['callback'] . "(" . $data . ")"; //prepend the callback to make it 'jsonp' format
  echo $data;
} else {

Anyone have any ideas?


Having the same problem!

I already posted to this forum, but no result so far:(