Saad Tlh
Saad Tlh

Reputation: 179

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

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

Upvotes: 5

Views: 8115

Answers (2)

SaadurRehman
SaadurRehman

Reputation: 660

I have the same error followed by the logs that tells Unable to communicate with the source application , When we are using the IOS simulator and Facebook is not installed on Simulator then the Source app is meant by the Safari App. Because in that case the Facebook SDK will load the safari or the default browser for the user to Login through Facebook. I observed that opening safari on the chosen simulator was not coming up, so I had to wait until the safari is working fine on Simulator then doing it with my app on the simulator the login was successful.

Upvotes: 0

Nikunj Kumbhani
Nikunj Kumbhani

Reputation: 3924

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.

Upvotes: 5

Related Questions