diff --git a/src/AdamWathan/EloquentOAuth/Providers/FacebookProvider.php b/src/AdamWathan/EloquentOAuth/Providers/FacebookProvider.php index 30a3d89..cad7beb 100644 --- a/src/AdamWathan/EloquentOAuth/Providers/FacebookProvider.php +++ b/src/AdamWathan/EloquentOAuth/Providers/FacebookProvider.php @@ -35,7 +35,7 @@ protected function requestAccessToken() 'client_id' => $this->clientId, 'client_secret' => $this->clientSecret, 'redirect_uri' => $this->redirectUri(), - 'code' => $this->request->authorizationCode(), + 'code' => $this->getAuthorizationCode(), ], ]); } catch (BadResponseException $e) {