-
-
Save codegefluester/f797dd723e93e545b855525a4b9ab057 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import CoreData | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
public func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool { | |
// Override point for customization after application launch. | |
return FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions) | |
} | |
public func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool { | |
return FBSDKApplicationDelegate.sharedInstance().application( | |
app, | |
open: url as URL!, | |
sourceApplication: options[UIApplicationOpenURLOptionsKey.sourceApplication] as! String, | |
annotation: options[UIApplicationOpenURLOptionsKey.annotation] | |
) | |
} | |
public func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool { | |
return FBSDKApplicationDelegate.sharedInstance().application( | |
application, | |
open: url as URL!, | |
sourceApplication: sourceApplication, | |
annotation: annotation) | |
} | |
} | |
Long live bra
Thanks buddy . you are life saver
I am using this with version 4.17 of the FB SDK and getting nil for the token. Any idea on why that might be. If i use this with an older version of the FB SDK (4.15.1), it works perfectly.
use this gist: for Swift3 June 2017
https://gist.github.com/jgchoi/097b59d85d6b378a81925be93a62fef9
Good job
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GREAT! Thank you