Just in case anyone has any other errors with login with Facebook on parse here's what I learnt
Add this key to your parse server dashboard FACEBOOK_APP_ID (near where you add MASTER_KEY)
You will have to switch up from the following method
[PFFacebookUtils logInWithPermissions:permissionsArray block:^(PFUser *user, NSError *error) {
to first executing the standard Facebook get token
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
[login logInWithReadPermissions: @[@"public_profile"]
fromViewController:self
handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
if (error) {
NSLog(@"Process error");
} else if (result.isCancelled) {
NSLog(@"Cancelled");
} else {
NSLog(@"Logged in");
NSString *facebookUserId = [FBSDKAccessToken currentAccessToken].userID;
NSString *accessToken = [FBSDKAccessToken currentAccessToken].tokenString;
NSDate *expirationDate = [FBSDKAccessToken currentAccessToken].expirationDate;
[self loginFacebookUserWithTokenInfo:facebookUserId
accessToken:accessToken
expirationDate:expirationDate];
}
}];
Then you login using the following section of code
[PFFacebookUtils logInWithFacebookId:facebookId
accessToken:accessToken
expirationDate:expirationDate
block:^(PFUser *user, NSError *error) {
if (error) {
NSLog(@"Error!");
} else {
NSLog(@"User logged in through Facebook and parse!");
// do as you please
}
}];