I can only view my own tweets and no one else's? So frustrated, need help


Hey all, I’m using the API for the first time and I’m running into something really weird. Whenever I authenticate via OAuth I can only view my own tweets and no one else’s. Even when I add parameters into the 1.1/statuses/user_timeline.json endpoint it’s still only showing my tweets and no one else. This is really frustrating and I might be doing something really dumb but I was hoping someone could help me out.

Also, when I try to use another endpoint I’m getting a 34 error/page not found, which is confusing, too. Yeah, I need some help. :slight_smile:

Here’s what my code looks like at this point – like I said, I’m just starting to figure this out so please bear with me. I’m using https://github.com/themattharris/tmhOAuth to authenticate.


require 'tmhOAuth.php';
require 'tmhUtilities.php';
$tmhOAuth = new tmhOAuth(array(
  'consumer_key'    => 'xxxxxxxxxx',
  'consumer_secret' => 'xxxxxxxxxx',
  'user_token'      => 'xxxxxxxxxx',
  'user_secret'     => 'xxxxxxxxxx,

$tmhOAuth->request('GET', $tmhOAuth->url('1.1/statuses/user_timeline.json'));
$timeline = json_decode($tmhOAuth->response['response'], true);
foreach ($timeline as $array_id)
    	echo "$array_id[text]";


Thanks for your help, I really appreciate it!