Can’t get oAuth to work to post messages to my own twitter account. I’ve set up my application, requested Read & write permissions, popped in all the correct values, and nothing is being posted to my twitter account… Here’s my code:
<?PHP
require_once ‘twitteroauth.php’;
define(“CONSUMER_KEY”, “Aof0w***…”);
define(“CONSUMER_SECRET”, “qtAHOMgeS***…”);
define(“OAUTH_TOKEN”, “731432660-X9kaxI91***…”);
define(“OAUTH_SECRET”, “66I6YjxsL1bDw4***…”);
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_SECRET);
$content = $connection->get(‘account/verify_credentials’);
$connection->post(‘statuses/update’, array(‘status’ => ‘test’));
?>