facebook 登录回调不调用可能原因
就本人遇到的情况而言,有以下两种
FacebookDisplayName
填写错误使用了
iOS13
中的UIScene
,处理URL Schemes
时,需到SceneDelegate.swift
文件处理
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
if let context = URLContexts.first {
var options = [UIApplication.OpenURLOptionsKey: Any]()
options[.sourceApplication] = context.options.sourceApplication
options[.annotation] = context.options.annotation
options[.openInPlace] = context.options.openInPlace
ApplicationDelegate.shared.application(UIApplication.shared, open: context.url, options:options)
}
}