mercredi 6 mai 2015

iOS: Facebook user info not being saved in Parse when registering

I'm using parse to register users from facebook in my iOS app. This is the code I have in my log in button:

PFFacebookUtils.logInWithPermissions(["public_profile", "email", "user_friends"], {
        (user: PFUser!, error: NSError!) -> Void in

After the user clicks it, the facebook app or safari opens up. After the user enters the email and password, it tells them that the app will see their public profile, email, friends.

Everything seems to work fine until this point. The problem comes when retrieving the user info from Parse:

<PFUser: 0x7fcd3ae5cae0, objectId: irrEruRILF, localId: (null)> {
username = LeFJc8ErtMLHqLmsonfNXq8Ck;
}

As you can see it gives me "username = LeFJc8ErtMLHqLmsonfNXq8Ck" but it doesn't have any profile information or email address... What am I missing?

Aucun commentaire:

Enregistrer un commentaire