PFFacebookUtils logInInBackgroundWithReadPermissions doesn't open Facebook after iOS9 update

时光怂恿深爱的人放手 提交于 2019-12-07 03:54:15

问题


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:

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


回答1:


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.



来源:https://stackoverflow.com/questions/32638913/pffacebookutils-logininbackgroundwithreadpermissions-doesnt-open-facebook-after

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!