I figured out how to implement Abraham's OAuth code. I added this to
my callback page, but nothing shows up:

$to = new TwitterOAuth($consumer_key, $consumer_secret,
$oauth_access_token, $oauth_access_secret);
$content = $to->OAuthRequest('https://twitter.com/statuses/
user_timeline.xml?', array('screen_name'=>"username"), 'GET');
$user = simplexml_load_string($content);

if ($user->screen_name!='') {
        echo '<pre>';
        print_r($user);
    echo '</pre>';

} else {
        if ($user->error!='')
        { echo '<h2>ERROR: '.$user->error.'</h2>'; }

}

Any ideas what I am doing wrong?

Reply via email to