Facebook Objective C to Swift 4 : <p>I am trying to implement facebook login using Swift 4</p>

<p>Facebook docs covers how to implement the facebook login button for the view controller but it does not cover how to set up the Appdelegate using swift </p>

<p>Can someone please convert this Objective C code to Swift </p>

<p>Or place a URL Link to docs that would help me convert it myself</p>

<pre><code>//  AppDelegate.m
#import &lt;FBSDKCoreKit/FBSDKCoreKit.h&gt;

- (BOOL)application:(UIApplication *)application 
    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

  [[FBSDKApplicationDelegate sharedInstance] application:application
    didFinishLaunchingWithOptions:launchOptions];
  // Add any custom logic here.
  return YES;
}

- (BOOL)application:(UIApplication *)application 
            openURL:(NSURL *)url 
            options:(NSDictionary&lt;UIApplicationOpenURLOptionsKey,id&gt; *)options {

  BOOL handled = [[FBSDKApplicationDelegate sharedInstance] application:application
    openURL:url
    sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
    annotation:options[UIApplicationOpenURLOptionsAnnotationKey]
  ];
  // Add any custom logic here.
  return handled;
}
</code></pre>
