Search code examples
facebookfacebook-graph-apiamazon-cognitoamazon-cognito-facebook

Cognito Facebook graph api user data


I am wondering whether if I continue with cognito Facebook login whether I will still be able to get the data like age, gender and interests like i believe you can with normal Facebook login.

Thanks for the help


Solution

  • Update from OP: You can do this easily.

    In the facebooksigninprovider class of Cognito it is just calling the standard loginWithReadPermissions method from the Facebook SDK. So all you have to do is add permissions to the array.

    Example below I added get the users email to the signin:

      LoginManager.getInstance().logInWithReadPermissions(signInActivity,
                    Arrays.asList("public_profile", "email"));