parse-community / Parse-SDK-Android

The Android SDK for Parse Platform
https://parseplatform.org/
Other
1.88k stars 734 forks source link

Facebook SDK wrong authData #1052

Closed pcg92 closed 4 years ago

pcg92 commented 4 years ago

Im using the latest version of the parse fbk sdk. And Im doing this:

ParseFacebookUtils.logInWithReadPermissionsInBackground(getActivity(), Arrays.asList("public_profile","email"), new LogInCallback() {

But the authData result is the following:

{
  "facebook": {
    "access_token": "...",
    "permissions": "public_profile,email",
    "id": "...",
    "expiration_date": "...",
    "last_refresh_date": "..."
  }
}
Jawnnypoo commented 4 years ago

Hmmm, so how is that information incorrect? That provides you with the access token, you would have to make additional calls to the Facebook API to retrieve things like email and public profile.

pcg92 commented 4 years ago

True, I was wrong thinking that the authData have the email, but no, we need to call to the facebook api to get it