iOS 9 Facebook login simulator -canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"

Can Poyrazoğlu picture Can Poyrazoğlu · Sep 20, 2015 · Viewed 28.6k times · Source

I've updated to Xcode 7 and the latest iOS SDK. I've added the appropriate entries in my app's plist:

enter image description here

My app's Facebook login works fine on device. However, on iOS 9 simulator, I'm getting:

-canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"

And login is not working. I've seen facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" but I have FBSDKCoreKit framework. I've also seen Facebook SDK 4.5 IOS 9 but it's answer doesn't solve my problem.

Why am I getting this error on simulator and not on device even though I've done the checklist at https://developers.facebook.com/docs/ios/ios9?

Answer

SoftDesigner picture SoftDesigner · Nov 15, 2015

Why do I see console messages like 'canOpenURL: failed for URL: "fb...://' or ?

This is an Xcode warning indicating the the canOpenURL: call returned false. As long as you have configured the LSApplicationQueriesSchemes entry in your plist as described above, you can ignore this warning.