Use of unresolved identifier sourceApplication Facebook SDK

Viewed 3742

The following code to implement FB login into my app

func application(app: UIApplication, openURL url: NSURL, options: [String :    AnyObject]) -> Bool {
    return FBSDKApplicationDelegate.sharedInstance().application(application, openURL: url, sourceApplication: sourceApplication, annotation: annotation)

However I keep getting two error messages both similar,

"Use of unresolved identifier 'annotation' "Use of unresolved identifier 'sourceApplication'

I'm not exactly sure what's causing this error but I have a feeling its a bit of code that's been deprecated. Does anyone know what the current alternative is?

appdelegate.swift

2 Answers
Related