rodrigoprimo / social-connect

WordPress plugin for signup/login using social media providers.
http://wordpress.org/extend/plugins/social-connect/
GNU General Public License v3.0
73 stars 40 forks source link

An error after twitter OAuth update #27

Closed Osiki closed 10 years ago

Osiki commented 11 years ago

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

unfulvio commented 11 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!

rodrigoprimo commented 10 years ago

Are you still having issues with Twitter login?

It should be working after 28236cb18fecc45aec1f2fc1fbe32b4b054306d7.

rodrigoprimo commented 10 years ago

Closing as this is probably fixed after the commit above. Please reopen this issue if you still have problems with the Twitter login.