I am developing TYPO3 extension uses the adapter pattern to connect with Twitter. I have followed the steps in https://dev.twitter.com/web/sign-in/implementing and other pages and forums, but I have a problem with this request. Now the authentication process is as follows:
- The url is generated correctly to log in on Twitter.
- In the callback url I get the outh_token and the oauth_verified.
- But at the moment of sending the oauth_verified by get access_token to to the account, it generates two errors.
In first case I have used POST
public function getAccessToken($oauthVerifier){
$accesToken = $this->api->post('oauth/access_token', array("oauth_verifier" => "$oauthVerifier"));
return $accesToken;
}
I get error with > code: 34, message: Sorry, that page does not exist
And if I use OAUTH
public function getAccessToken($oauthVerifier){
$accesToken = $this->api->oauth('oauth/access_token', array("oauth_verifier" => "$oauthVerifier"));
return $accesToken;
}
Generates a exception with message Invalid request token
I am using Abrham TwitterOAuth with PHP 5.6 and TYPO3 7.6