在iOS9更新后,PFFacebookUtils logInInBackgroundWithReadPermissions不会打开Facebook [英] PFFacebookUtils logInInBackgroundWithReadPermissions doesn't open Facebook after iOS9 update

查看:153
本文介绍了在iOS9更新后,PFFacebookUtils logInInBackgroundWithReadPermissions不会打开Facebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经更新到iOS9,现在我的Facebook登录按钮,调用:

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

甚至没有尝试打开Facebook。



我已将必要的文件添加到我的info.plist文件(



但FB应用程序不启动,并且块从不被调用。任何想法?

解决方案

默认情况下,iOS9中的(Parse)Facebook登录将在Safari浏览器中使用Facebook,而不是Facebook应用因为现在被认为是最好的用户体验。



如果点击登录按钮不会将您带到Safari,那么您应该检查是否更新了Facebook和Parse的SDK,以及更改为plist已经描述过。


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?

解决方案

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.

这篇关于在iOS9更新后,PFFacebookUtils logInInBackgroundWithReadPermissions不会打开Facebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆