Closed Osiki closed 10 years ago
Hi Osiki, I tried applying your changes, but in my case the issue didn't fix. I still get an empty popup window when trying to connect using twitter. Did you do anything else besides the changes mentioned above? If something has worked for you could you fork and/or submit a pull request? thank you!
Are you still having issues with Twitter login?
It should be working after 28236cb18fecc45aec1f2fc1fbe32b4b054306d7.
Closing as this is probably fixed after the commit above. Please reopen this issue if you still have problems with the Twitter login.
After this update you have an error: PHP Fatal error: Uncaught exception 'EpiOAuthUnauthorizedException' with message '<?xml version="1.0" encoding="UTF-8"?>\n\n /oauth/access_token \n Required oauth_verifier parameter not provided \n \n' in .../wp-content/plugins/social-connect/twitter/EpiOAuth.php:249\nStack trace:\n#0 .../wp-content/plugins/social-connect/twitter/EpiOAuth.php(228): EpiOAuthException::raise('<?xml version="...', 401)\n#1 .../wp-content/plugins/social-connect/twitter/callback.php(14): EpiOAuthResponse->__get('oauth_token')\n#2 {main}\n thrown in .../wp-content/plugins/social-connect/twitter/EpiOAuth.php on line 249
To repair it you need change a line in callback.php and add $_GET['oauth_verifier'] $token = $twitter_api->getAccessToken($_GET['oauth_verifier']);
In EpiOAuth.php change function getAccessToken() to
public function getAccessToken($oauth_verifier = FALSE) { $parameters = array(); if (!empty($oauth_verifier)) { $parameters['oauth_verifier'] = $oauth_verifier; } $resp = $this->httpRequest('GET', $this->accessTokenUrl, $parameters); return new EpiOAuthResponse($resp); }
Thats all