title: SLServiceTypeFacebook' was deprecated in iOS 11.0
body: <p>I'm working on a project in xcode 9 and one of my previous codes giving a warning saying the code is been deprecated, where it does not trigger the action. The code as bellow. How can i overcome this ?</p>
  
  <pre><code>@IBAction func shareOnFacebookButtonPressed(_ sender: Any) {
  
      let shareToFacebook : SLComposeViewController = SLComposeViewController(forServiceType: SLServiceTypeFacebook)
      shareToFacebook.add(UIImage(named:"pureLightSocial"))
      self.present(shareToFacebook, animated: true, completion: nil)
  }
  </code></pre>