Reputation: 8904
I'm using in Facebook login in app so I've installed FBSDKLoginKit in my app using cocoapods.
I've followed the Facebook documentation and finished all the steps except this FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
.
The method application(application, didFinishLaunchingWithOptions: launchOptions)
is not available in FBSDKLoginKit.
Upvotes: 8
Views: 6174
Reputation: 309
Anyone else on C#, you have to rename ApplicationDelegate to FBSDKApplicationDelegate
Upvotes: 0
Reputation: 8904
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
Upvotes: 21
Reputation: 271
If you use Swift you need to use this for FBSDKLoginKit after 5.0 (source here):
ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
Upvotes: 7