Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PFFacebookUtils logInInBackgroundWithReadPermissions doesn't open Facebook after iOS9 update

I've updated to iOS9, and now my Facebook login button, which calls:

[PFFacebookUtils logInInBackgroundWithReadPermissions:@[@"public_profile"] block:^(PFUser * _Nullable user, NSError * _Nullable error) {...}

doesn't even attempt to open Facebook.

I've added the necessary files to my info.plist file (as suggested here), which now looks like this:

enter image description here

But the FB app doesn't launch, and the block is never called. Any ideas?

like image 996
Smikey Avatar asked Sep 17 '15 19:09

Smikey


1 Answers

The (Parse) Facebook login in iOS9 by default will use Facebook in the safari browser instead of the Facebook App as this is now regarded as the best user experience.

If the click on the login button does not take you to Safari, you should check if you've updated the SDKs for Facebook and Parse as well as the changeds to the plist already described.

like image 72
scbojer Avatar answered Nov 15 '22 07:11

scbojer