Title: -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
Tags: ios;objective-c
Question: Do I need to add anything else in info.plist?
-canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
<key&gt;CFBundleURLTypes</key&gt;
<array&gt;
<dict&gt;
<key&gt;CFBundleURLSchemes</key&gt;
<array&gt;
<string&gt;fb232259140641364</string&gt;
</array&gt;
</dict&gt;
</array&gt;
<key&gt;FacebookAppID</key&gt;
<string&gt;232259140641364</string&gt;
<key&gt;FacebookDisplayName</key&gt;
<string&gt;lodore</string&gt;
<key&gt;LSApplicationQueriesSchemes</key&gt;
<array&gt;
<string&gt;fbapi</string&gt;
<string&gt;fb-messenger-api</string&gt;
<string&gt;fbauth2</string&gt;
<string&gt;fbshareextension</string&gt;
</array&gt;
Comment: @TomSpee where you able to solve this? I got the same error

Comment: Got it! Even though I get this error, I am able to log in using facebook into my app. Weird

Comment: Welcome to SO. Your question is really confusing. What is that error message doing in there? Don't just dump text, explain it!

Comment: Did you ever solve this? I've got the same problem, I've added the string to the Info.plist and tried -canOpenUrl but got the same error message.

Comment: @Spark For Facebook this works for me, my comment was about a different app that had a different scheme then I thought. For Facebook you should just follow their quick-start example, just implemented it this week and works fine.



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 5, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2017:00:11/09/17', 'FavoriteCount': 1.0, 'PostTypeId': 1, 'Tags': '<ios><objective-c>', 'Title': '-canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"', 'ViewCount': 2145, 'id': 47196007, 'user_AboutMe': None, 'user_AccountId': 11645609.0, 'user_DisplayName': 'Ramesh Kumar', 'user_Reputation': 47.0, 'user_Views': 17.0, 'user_id': 8528597.0}}