twitteroauth
twitteroauth copied to clipboard
TwitterOAuthException on TwitterOAuth.php line 137
Fatal error: Uncaught Abraham\TwitterOAuth\TwitterOAuthException: Ongeldig request token. in .../vendor/abraham/twitteroauth/src/TwitterOAuth.php:137
Stack trace:
#0 .../twit-token.php(24): Abraham\TwitterOAuth\TwitterOAuth->oauth('oauth/access_to...', Array)
#1 {main}
thrown in .../vendor/abraham/twitteroauth/src/TwitterOAuth.php on line 137
This exception gets thrown by the dev console on Chromium. Thing is I only make a second call to oauth/access_token AFTER the user has authorized the page. Don't exactly know what's causing this issue.
Was able to fix it by myself, was actually an error with the oauth_verifier. The .php wasn't able to get it by $_REQUEST. Had to do it via $_POST and send the verifier clientside via Ajax to the .php