Skip to content

Commit

Permalink
* [Facebook] Fix problem which occurs during calling the Facebook Gra…
Browse files Browse the repository at this point in the history
…ph API to `getAccessToken()` for a specific redirectUrl

  * Adding the `login_done` uri to the  `getAccessToken()` will fix this issue
  * hybridauth#727
  • Loading branch information
aWuttig committed Jan 31, 2017
1 parent 6b19a77 commit 7f8e52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hybridauth/Hybrid/Providers/Facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function loginFinish() {

$helper = $this->api->getRedirectLoginHelper();
try {
$accessToken = $helper->getAccessToken();
$accessToken = $helper->getAccessToken($this->params['login_done']);
} catch (Facebook\Exceptions\FacebookResponseException $e) {
throw new Hybrid_Exception('Facebook Graph returned an error: ' . $e->getMessage());
} catch (Facebook\Exceptions\FacebookSDKException $e) {
Expand Down

0 comments on commit 7f8e52d

Please sign in to comment.