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

facebookiosios10

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:
https://developers.facebook.com/docs/ios/ios9

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

<key>LSApplicationQueriesSchemes</key>
<array>
        <string>fbauth2</string>
</array>

You need to set it according to your SDK version.

More detail refer this Document.

Related Question