2015-11-02 106 views
1

我正在使用Facebook和解析作为我的日志过程中的一部分罚款 - 但我更新到最新版本(脸谱4.6和解析1.9。 1)昨天,现在我的应用程序的登录过程不再有效。Facebook(4.6)/ Parse(1.9.1)登录无法正常工作

我称之为解析UTIL方法迁移一个匿名用户:

[PFFacebookUtils linkUserInBackground:[PFUser currentUser] 
        withReadPermissions:permissionsArray 
           block:^(BOOL succeeded, NSError *error){ 

Facebook登录过程是通过SFSafariViewController开始 - 凭证输入,本人谨此 - 和我然后用白色的屏幕提出并SFSafariViewController并没有被解雇 - 也没有从pfutils方法的回调。 facebook after credentials entered

我都跟着iOS9迁移指南,并具有以下设置在我的plist

<key>CFBundleURLTypes</key> 
    <array> 
     <dict> 
      <key>CFBundleTypeRole</key> 
      <string>Editor</string> 
      <key>CFBundleURLName</key> 
      <string>fbauth2</string> 
      <key>CFBundleURLSchemes</key> 
      <array> 
       <string>fb{idhere}</string> 
      </array> 
     </dict> 
    </array> 
    <key>FacebookAppID</key> 
    <string>{idhere}</string> 
<key>LSApplicationQueriesSchemes</key> 
    <array> 
     <string>fbapi</string> 
     <string>fb-messenger-api</string> 
     <string>fbauth2</string> 
     <string>fbshareextension</string> 
    </array> 
<key>NSAppTransportSecurity</key> 
    <dict> 
     <key>NSExceptionDomains</key> 
     <dict> 
      <key>akamaihd.net</key> 
      <dict> 
       <key>NSIncludesSubdomains</key> 
       <true/> 
       <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> 
       <false/> 
      </dict> 
      <key>facebook.com</key> 
      <dict> 
       <key>NSIncludesSubdomains</key> 
       <true/> 
       <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> 
       <false/> 
      </dict> 
      <key>fbcdn.net</key> 
      <dict> 
       <key>NSIncludesSubdomains</key> 
       <true/> 
       <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> 
       <false/> 
      </dict> 
     </dict> 
    </dict> 

任何帮助,将不胜感激

+0

我是一个白痴 - 我必须删除粘贴在应用程序委托方法,阻止这 - (BOOL)申请:(UIApplication的*)应用程序的OpenURL:(NSURL *)网址sourceApplication:(的NSString *)sourceApplication注释:(ID)注释{ 回报[FBSDKApplicationDelegate sharedInstance]应用:应用 的OpenURL:URL sourceApplication:sourceApplication annotation:annotation ]; } – user499846

+0

为了解决这个问题,你做到了吗? – fatuhoku

+0

是的 - 由于某种原因,我不能自己回答这个问题 – user499846

回答

1

我是一个白痴 - 我必须清除粘贴在应用代理方法,防止这种 -

-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { return [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url sourceApplication:sourceApplication annotation:annotation ]; }