Closed jdurga closed 5 years ago
I followed the steps as in README file, but I am receiving error apply only authentication. [code] => 99 [message] => Unable to verify your credentials [label] => authenticity_token_error
How to resolve this error?
My code:
\Codebird\Codebird::setConsumerKey('MyKey', 'MySecret'); // static, see README $cb = \Codebird\Codebird::getInstance(); if($cb == NULL) { ost_api_log("code bird instance is NULL"); } if(isset($_SESSION['bearer_token']) == false) { $reply = $cb->oauth2_token(); $replyP = print_r($reply); $bearer_token = $reply->access_token; $_SESSION['bearer_token'] = $bearer_token; }
Apparently your tokens are incorrect – have you cross-checked with your listing at https://developer.twitter.com/en/apps ?
@jdurga Any ideas about this? :)
Closing since there were no further replies.
I followed the steps as in README file, but I am receiving error apply only authentication. [code] => 99 [message] => Unable to verify your credentials [label] => authenticity_token_error
How to resolve this error?
My code: