Facebook iOS SDK does not have FBSDKApplicationDelegate class and its methods

I've gone through their documentation but they did not specified any thing but I've found the following things in ChangeLog (on git).

  • NS_SWIFT_NAME was applied where applicable. Most of these changes Xcode can fix automatically.

  • The FBSDK prefix for UI elements has been replaced with the simpler FB prefix.

  • The FBSDK prefix for all other types has been removed. FBSDKError is now CoreError.

So the class FBSDKApplicationDelegate now has been renamed to ApplicationDelegate for swift developer.

For objective-c developer this remains same.

Works For FBSDK version before 5.0.0

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

Works For FBSDK version 5.0.0 and later

ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)

Hope this will help other:) (Before Facebook update their documentation)

For complete change log for version 5.0.0 click here


If you use Swift you need to use this for FBSDKLoginKit after 5.0 (source here):

ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)