简体   繁体   English

FBSDKGraphRequest FBSDKGraphRequestConnection仅在iOS 9中返回错误

[英]FBSDKGraphRequest FBSDKGraphRequestConnection only in iOS 9 return error

this is the login success with iOS 9.0.1. 这是iOS 9.0.1的登录成功。

在此处输入图片说明

this is the login failed with iOS 9 iPhone . 这是iOS 9 iPhone的登录失败。

在此处输入图片说明

and in iOS 9 iPhone i have this warning : 在iOS 9 iPhone中,我有以下警告:

在此处输入图片说明

the sdk update to parse 1.8.5 and Facebook to 4.6 from here : https://developers.facebook.com/docs/ios/ios9 sdk更新以从此处将1.8.5和Facebook解析为4.6: https : //developers.facebook.com/docs/ios/ios9

what can I do to solved this ? 我该怎么解决?

the Facebook login is with PFFacebookUtils logInInBackgroundWithReadPermissions : Facebook登录使用PFFacebookUtils logInInBackgroundWithReadPermissions:

  NSArray *permissions = [NSArray arrayWithObjects:@"email",@"user_friends", nil];
[PFFacebookUtils logInInBackgroundWithReadPermissions:permissions block:^(PFUser *user, NSError *error)
 {
     if (!user) // The user cancelled the Facebook login
     {
         NSLog(@"Uh oh. The user cancelled the Facebook login.");
     }
     else if (user.isNew) 
     {

     }
     else if (user) // the user is exist at DB
     {

     }
     else if (error)
     {
     }
 }];

Have u added this params in yout plist? 您是否已在您的列表中添加了这些参数?

<key>FacebookAppID</key>
<string>YourFBKey</string>
<key>FacebookDisplayName</key>
<string>moodoo</string>
<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fbapi</string>
    <string>fbapi20130214</string>
    <string>fbapi20130410</string>
    <string>fbapi20130702</string>
    <string>fbapi20131010</string>
    <string>fbapi20131219</string>
    <string>fbapi20140410</string>
    <string>fbapi20140116</string>
    <string>fbapi20150313</string>
    <string>fbapi20150629</string>
    <string>fbauth</string>
    <string>fbauth2</string>
    <string>fb-messenger-api20140430</string>
    <string>fb-messenger-platform-20150128</string>
    <string>fb-messenger-platform-20150218</string>
    <string>fb-messenger-platform-20150305</string>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM