twitteroauth icon indicating copy to clipboard operation
twitteroauth copied to clipboard

TwitterOAuthException on TwitterOAuth.php line 137

Open nilleairbar opened this issue 9 years ago • 1 comments

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.

nilleairbar avatar Nov 16 '17 19:11 nilleairbar

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

nilleairbar avatar Nov 16 '17 20:11 nilleairbar