2017-05-21 3 views
0

Ich habe alle Macbook Login-Schritte von ihrer Website implementiert. Und wenn ich auf meine Schaltfläche klicke, um die Facebook-Anmeldeseite anzuzeigen, wird die Facebook-Safari-Anmeldeseite nicht geladen oder versucht zu laden und ist im Wesentlichen leer. Hier ist mein Code. Kann jemand eine Änderung oder einen Rat geben, was ich tun soll, um dieses Problem zu lösen? Hier ist mein Appdelagate. In meiner info.plist habe ich die FacebookAppID, lsApplicationQuiersSchemes, Facebook-Anzeigename enthalten. Ich habe auch mein Bündel-Identifikator in der on-Face-Buchwebsite gesetzt. Gibt es etwas, das ich vermisse? Wenn ich meine Facebook-Taste drücke, erscheint eine leere Safari-Seite.Facebook Login-Seite ist leer und wird nicht geladen

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 
} 

}

Antwort

0

Überprüfen Sie Ihre Konsole, sollte es einen Fehler geben.

+0

hat es nicht. Ich weiß nicht warum – john