KEYCLOAK-1894 Fix login with Facebook missing profile details

This commit is contained in:
Stian Thorgersen 2015-10-01 11:54:14 +02:00
parent a048cfc102
commit 589eb3206e

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) {