Previously, you could use the following function when initializing an application:

FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: didFinishLaunchingWithOptions) 

In Swift 3 didFinishLaunchingWithOptions absent in principle.

Maybe you know how to make Swift 3 friends with the SDK from Facebook?

The SDK is needed to authorize and get the id, name, date of birth, email whenever possible and of course the token.

  • 2
    Fear God, as didFinishLaunchingWithOptions may be missing. And the main thing with which there is a swift - this class / method does not depend on any side of the swift - Max Mikheyenko

1 answer 1

The function did not disappear anywhere, it just changed a little =)

It used to be like this:

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {return true} 

Now so:

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {return true} 
  • Now this method does not return anything, and the launchOptions parameter is missing - Kuzin Dmitry
  • 2
    sorry, comments can not be minus. - Max Mikheyenko