-canOpenURL: failed for URL: “fbauth2:/” (OSStatus error -10814.)"

后端 未结 4 803
一生所求
一生所求 2020-11-29 12:13

i\'m adding Facebook and Google signup in my application but i have this issue

The operation couldn’t be completed. -10814

in t

4条回答
  •  情深已故
    2020-11-29 12:43

    Worked after adding openUrl with options:

    Facebook documentation

    Note that application:openURL:options: is only available in iOS 9 and above. If you are building with an older version of the iOS SDK, you can use:

    - (BOOL)application:(UIApplication *)application 
                openURL:(NSURL *)url 
      sourceApplication:(NSString *)sourceApplication
             annotation:(id)annotation {
    
      BOOL handled = [[FBSDKApplicationDelegate sharedInstance] application:application
        openURL:url
        sourceApplication:sourceApplication
        annotation:annotation
      ];
      // Add any custom logic here.
      return handled;
    } 
    

提交回复
热议问题