具有iOS 13的Facebook登录工具包"canOpenURL:URL失败:"fbauth2:///""; [英] Facebook Login kit with iOS 13 "canOpenURL: failed for URL: “fbauth2:///”"

查看:39
本文介绍了具有iOS 13的Facebook登录工具包"canOpenURL:URL失败:"fbauth2:///"";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iOS 12的Facebook登录工具包工作正常,iOS 13的Facebook登录工具包不允许打开fbauth2网址.这已在此处验证: https://forums.developer.apple.com/thread/117704

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

并且我已经通过在装有iOS 13的iPhone 6s Plus外部设备上以及在同时运行iOS 12和iOS 13的模拟器上尝试FB登录的方式对此进行了验证,每个具有iOS 13的设备都无法打开FB URL.

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?

推荐答案

升级到当前的FBSDK应该可以解决此问题.

Upgrading to the current FBSDK should resolve the problem.

修改了FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/FBSDKBridgeAPI.m,以支持iOS 13的要求,以在FBSDKCoreKit 5.4中实现ASWebAuthenticationPresentationContextProviding.当前版本是5.8.先前的版本将不再起作用.

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.

所需的更改发布在这里: https://github.com/facebook/facebook-ios-sdk/commit/6b061099f339ef0e8bde2e2c2163ef5a3c1b8340#diff-72593591275d63edfb1bfad837e4c32f

The needed change is posted here: https://github.com/facebook/facebook-ios-sdk/commit/6b061099f339ef0e8bde2e2c2163ef5a3c1b8340#diff-72593591275d63edfb1bfad837e4c32f

这篇关于具有iOS 13的Facebook登录工具包"canOpenURL:URL失败:"fbauth2:///"";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆