Skip to content

Instantly share code, notes, and snippets.

@Jerry0420
Created October 12, 2016 06:56
Show Gist options
  • Save Jerry0420/838082c00caaed21fd59b70479231521 to your computer and use it in GitHub Desktop.
Save Jerry0420/838082c00caaed21fd59b70479231521 to your computer and use it in GitHub Desktop.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
return true
}
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
return FBSDKApplicationDelegate.sharedInstance().application(application, open: url, sourceApplication: sourceApplication, annotation: annotation)
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
FBSDKAppEvents.activateApp()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment