iOS 9没有登录Facebook登录? [英] iOS 9 not logged in Facebook login?
本文介绍了iOS 9没有登录Facebook登录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下附加我的代码。
FBSDKLoginManager * login = [[FBSDKLoginManager alloc] init];
[login logInWithReadPermissions:@ [@public_profile,@email,@user_friends] fromViewController:self handler:^(FBSDKLoginManagerLoginResult * result,NSError * error){
if([FBSDKAccessToken currentAccessToken]){startWithCompletionHandler:^(FBSDKGraphRequestConnection * connection,id result,NSError * error){
if(!error){
}
}];
}
}];
解决方案
iOS9.2.1
这将修复我的308个问题
打开源代码,plist文件,搜索LSApplicationQueriesSchemes,然后根据需要添加/修改。 p>
< key> LSApplicationQueriesSchemes< / key>
< array>
< string> fbauth2< / string>
< string> fbapi< / string>
< string> fb-messenger-api< / string>
< string> fbshareextension< / string>
< / array>
I am using Xcode 7.0, testing on iOS 9.0.2 and using Facebook SDK 4.7.0. Code=308 "(null)" issue occur in iOS 9.I am using objective-c code in my project. how to resolve this? Below attach my code.
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
[login logInWithReadPermissions:@[@"public_profile",@"email", @"user_friends"] fromViewController:self handler:^(FBSDKLoginManagerLoginResult *result, NSError *error){
if ([FBSDKAccessToken currentAccessToken]) { startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
if (!error) {
}
}];
}
}];
解决方案
iOS9.2.1
This fixes my 308 issues
Open as 'source code', plist file, search for LSApplicationQueriesSchemes, then add/modify as needed.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbauth2</string>
<string>fbapi</string>
<string>fb-messenger-api</string>
<string>fbshareextension</string>
</array>
这篇关于iOS 9没有登录Facebook登录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文