0

I'm having troubles posting to twitter with codebird.

This is the error message that I get when I log $reply.

[code] => 89
[message] => Invalid or expired token.

This is my code

require_once __DIR__ . '/includes/codebird/src/codebird.php';
\Codebird\Codebird::setConsumerKey($consumer_key, $consumer_secret);

$cb = \Codebird\Codebird::getInstance();
$cb->setToken($access_token, $access_token_secret);

$reply = $cb->statuses_update('status=Whohoo, I just tweeted!');

For the oAuth I have "read and write" option selected and for callback URL I have http://127.0.0.1 enter image description here

Any help is much appreciated.

ivan marchenko
  • 401
  • 1
  • 4
  • 15

0 Answers0