Merge pull request #1667 from stianst/fb-fix

KEYCLOAK-1894 Fix login with Facebook missing profile details
This commit is contained in:
Stian Thorgersen 2015-10-01 13:37:57 +02:00
commit 56116038d6

View file

@ -17,7 +17,7 @@ public class FacebookIdentityProvider extends AbstractOAuth2IdentityProvider imp
public static final String AUTH_URL = "https://graph.facebook.com/oauth/authorize"; public static final String AUTH_URL = "https://graph.facebook.com/oauth/authorize";
public static final String TOKEN_URL = "https://graph.facebook.com/oauth/access_token"; public static final String TOKEN_URL = "https://graph.facebook.com/oauth/access_token";
public static final String PROFILE_URL = "https://graph.facebook.com/me"; public static final String PROFILE_URL = "https://graph.facebook.com/me?fields=id,name,email,first_name,last_name";
public static final String DEFAULT_SCOPE = "email"; public static final String DEFAULT_SCOPE = "email";
public FacebookIdentityProvider(OAuth2IdentityProviderConfig config) { public FacebookIdentityProvider(OAuth2IdentityProviderConfig config) {