简体   繁体   中英

Facebook Login kit with iOS 13 "canOpenURL: failed for URL: “fbauth2:///”"

Facebook login kit with iOS 12 works just fine, Facebook login kit with iOS 13 doesn't allow the opening of fbauth2 urls. This has been verified here: https://forums.developer.apple.com/thread/117704

and i've verified this myself by trying FB login on my iPhone 6s Plus external device with iOS 13, and with simulators running both iOS 12 and iOS 13. Every device with iOS 13 fails to open FB urls.

does anyone have a fix for this issue?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM