gpt4 book ai didi

ios - Facebook 登录页面为空且无法加载

转载 作者:行者123 更新时间:2023-11-30 12:26:46 26 4
gpt4 key购买 nike

我从他们的网站实现了所有 MacBook 登录步骤。当我单击取消按钮以显示 Facebook 登录页面时,Facebook safari 登录页面将不会加载,甚至不会尝试加载,并且基本上是空白的。这是我的代码。有人可以就我应该做什么来解决这个问题提供一些编辑或建议吗?这是我的应用程序。在我的 info.plist 中,我包含了 FacebookAppID、lsApplicationQuiersSchemes、Facebook 显示名称。我还将我的 bundle 标识符放在了面子书网站上。我有什么遗漏的吗?当我按下 Facebook 按钮时,它会显示一个空白的 safari 页面。

import FBSDKCoreKit
import FBSDKLoginKit
import ParseFacebookUtilsV4
import CoreData
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, UIViewControllerTransitioningDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {

PFFacebookUtils.initializeFacebook(applicationLaunchOptions: launchOptions)
FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)

return true
}

func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
return FBSDKApplicationDelegate.sharedInstance().application(application, open: url, sourceApplication: sourceApplication, annotation: annotation)
}

func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

func applicationDidBecomeActive(_ application: UIApplication) {
FBSDKAppEvents.activateApp()

}

func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
private func setupGlidingCollection() {
var config = GlidingConfig.shared
config.buttonsFont = UIFont.boldSystemFont(ofSize: 22)
config.inactiveButtonsColor = config.activeButtonColor
GlidingConfig.shared = config
}

}

最佳答案

检查你的控制台,它应该会给出错误。

关于ios - Facebook 登录页面为空且无法加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44098111/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com