PFFacebookUtils logInWithPermissions fails first time, works second time

I am calling logInWithPermissions with default permissions, without any PFUser in the data browser and permissions removed directly from Facebook.

Code triggered by login button action:

NSArray *permissionsArray = @[ @"public_profile", @"email", @"user_friends"];

[PFFacebookUtils logInWithPermissions:permissionsArray block:^(PFUser *user, NSError *error) {
    // show an alert in case of error
}];

      

The first attempt returns the error "com.facebook.sdk" - code: 5 , without asking for Facebook permission.

The second attempt asks for Facebook permissions and after confirmation, the PFUser is generated and displayed in the data browser.

Does anyone have the same problem?


I am using cocoapods with Parse v1.6 and ParseFacebookUtils v1.6 and I followed https://www.parse.com/docs/ios_guide#fbusers/iOS guide

+3
ios objective-c facebook parse.com


source to share


No one has answered this question yet

Check out similar questions:

five
iOS 6 facebook sdk 3.1.1 login error
4
Why is there a gear icon and not my app logo on the iOS Facebook permission screen?
3
Parse: Facebook login doesn't create new PFUser
3
Could not find an overload for "logInWithPermissions" that accepts the supplied arguments
2
PFFacbookUtils block loginWithPermissions never called
2
Parse login with Facebook doesn't work
1
ios Facebook Login with "Invalid scale: basic_info". use public_profile, user_friends instead
1
IOS Facebook permissions listed twice in PFFacebookUtils logInWithPermissions
0
Confirmation confirmation dialog does not appear on facebook api, google + api, vk api
0
iOS Facebook SDK v3.14.1 Login does not work with "public_profile" permission



All Articles
Loading...
X
Show
Funny
Dev
Pics