Ios – -canOpenURL: failed for URL: “fbauth2:/” – error: “This app is not allowed to query for scheme fbauth2” (OSStatus error -10814.)


This error message when I try to login:_

-canOpenURL: failed for URL: "fbauth2:/" – error: "The operation couldn’t be completed. (OSStatus error -10814.)"

I have macOS High Sierra 10.13.6.
My Xcode version is 9.4.1.

SDKs iOS 10.2, Simulator

I have tried mothod but doesn't help:

I also did try to play around LSApplicationQueriesSchemes but not success as well.

Best Solution

The same issue I resolved it by adding this in Info.plist


You need to set it according to your SDK version.

More detail refer this Document.

Related Question