Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hint to call supports in getCredentials method for symfony lower than 3.4 #97

Merged
merged 5 commits into from
Apr 20, 2018
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ class MyFacebookAuthenticator extends SocialAuthenticator
{
// this method is only called if supports() returns true

// For Symfony lower than 3.4 the supports method need to be called manually here:
// if (!$this->supports($request)) {
// return null;
// }

return $this->fetchAccessToken($this->getFacebookClient());
}

Expand Down