Auth0 Home Blog Docs

FacebookAuthProvider

facebook-login

#1

Hello, I use FacebookAuthProvider for login in facebook. But I have some troubles with login.

    mProvider.setPermissions(Arrays.asList("public_profile", "user_photos"));
    mProvider.setParameters(ParameterBuilder.newBuilder()
            .setScope("openid email profile offline_access")
            .setAudience("http://.....")
            .asDictionary());

inside FacebookAuthProvider I see success callback response, the above

new FacebookApi.Callback() {
@Override
public void onSuccess(LoginResult loginResult) {

Then call auth0.loginWithOAuthAccessToken(token, CONNECTION) for get credantials, But I have 403 error.
I think I get the error because loginWithOAuthAccessToken does’t work.

Can anybody clarify me please how to get user credentials by using this acсess token ? (loginResult.getAccessToken().getToken())