Facebook Login kit with iOS 13 canOpenURL: failed for URL: “fbauth2:///”
Upgrading to the current FBSDK should resolve the problem.
FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.m was modified to support iOS 13's requirement to implement ASWebAuthenticationPresentationContextProviding in FBSDKCoreKit 5.4. The current version is 5.8. Versions prior will no longer work.
The needed change is posted here: https://github.com/facebook/facebook-ios-sdk/commit/6b061099f339ef0e8bde2e2c2163ef5a3c1b8340#diff-72593591275d63edfb1bfad837e4c32f
Facebook login failed: fbauth2:/ - error: This app is not allowed to query for scheme fbauth2 iOS 13, Xcode 11
Upgrading to the current FBSDK should resolve the problem. iOS 13 requires the implementation of ASWebAuthenticationPresentationContextProviding, which was not available until FBSDKCoreKit 5.4.
FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.m was modified to support iOS 13's requirement to implement ASWebAuthenticationPresentationContextProviding in FBSDKCoreKit 5.4. (The current version is 5.8.) Versions prior will no longer work.
The needed change is posted here: https://github.com/facebook/facebook-ios-sdk/commit/6b061099f339ef0e8bde2e2c2163ef5a3c1b8340#diff-72593591275d63edfb1bfad837e4c32f
I was unable to upgrade due to a dependency with AWS, but I was able to patch the 4.42 version of the file based on the differences in the diff above.
The error -canOpenURL: failed for URL: "fbauth2:/" - error: "This app is not allowed to query for scheme fbauth2
was a symptom of the FBSDK attempting to open Facebook, which was not installed, so it was just a warning before it would fall back to browser-based FB auth.
Facebook login callback not working when using Facebook app - Swift
I think you've done a log in via Facebook and this may cause some problems
It is best to use the latest update for Facebook sdk using pod or download facebook framework latest version
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare'
see facebook LoginBehavior
based on last update for facebook sdk It should appear this way
And check plist info same this
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb{your-app-id}</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>{your-app-id}</string>
<key>FacebookDisplayName</key>
<string>{your-app-name}</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-share-api</string>
<string>fbauth2</string>
<string>fbshareextension</string>
</array>
Related Topics
Swift: Nsstatusitem Menu Behaviour in 10.10 (E.G. Show Only on Right Mouse Click)
Search Multiple Words in One String in Swift
Swift Firebase Custom Object with Document Id
Swiftui Sheet Not Updating Variable
Swiftui: Using View Modifiers Between Different iOS Versions Without #Available
Xcode 8 Shell Script Invocation Error
Swift Safely Unwrapping Optinal Strings and Ints
How to Copy Skspritenode with Skphysicsbody
Context Menu Not Updating in Swiftui
How to Hash a String to Sha512 in Swift
iOS 13 Modals - Calling Swipe Dismissal Programmatically
Cllocation Distancefromlocation (In Swift)
Bit Field Larger Than 64 Shifts in Swift
Closures Return Value (Previously Completionblock)
Saving Exif Data to Jpeg - Swift
How to Access App Specific Folder and Use It to Backup or Some App Specific Data? in Swift