2015-09-26 37 views
0

這是iOS 9.0.1的登錄成功。FBSDKGraphRequest FBSDKGraphRequestConnection僅在iOS 9中返回錯誤

enter image description here

這是登錄失敗與iOS 9 iPhone。

enter image description here

和iOS的9 iPhone,我有這樣的警告:

enter image description here

SDK的更新,從這裏解析1.8.5和Facebook 4.6:https://developers.facebook.com/docs/ios/ios9

什麼都可以我確實解決了這個問題?

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) 
    { 
    } 
}]; 

回答

0

具有u加入這個PARAMS在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> 
相關問題