title: Facebook Login Error Invalid Scope: users_friends
body: <p>I have created an App using the Facebook Login and when I run the App I get this below error.</p>
  
  <blockquote>
    <p>error: canOpenURL: failed for URL: "fbauth2:/" - error: "The operation
    couldn’t be completed. (OSStatus error -10814.)"</p>
  </blockquote>
  
  <pre><code>class ViewController: UIViewController, FBSDKLoginButtonDelegate {
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view, typically from a nib.
      if(FBSDKAccessToken.current()==nil){
          print("Not Logged In")
      }
      else{
          print("Logged In..")
      }
  
      let loginButton = FBSDKLoginButton()
      loginButton.delegate = self
      loginButton.readPermissions = ["public_profile","email","users_friends"]
      loginButton.center = self.view.center
      self.view.addSubview(loginButton)
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  func loginButton(_ loginButton: FBSDKLoginButton!, didCompleteWith result: FBSDKLoginManagerLoginResult!, error: Error!) {
  
      if(error == nil){
          print("login complete")
  
      }
      else{
          print(error.localizedDescription)
      }
  
  }
  
  func loginButtonDidLogOut(_ loginButton: FBSDKLoginButton!) {
      print("Logged out..")
  }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/nCHM6.png" rel="nofollow noreferrer">What I've got on Info.plist</a></p>
  
  <p><a href="https://i.stack.imgur.com/75qBt.png" rel="nofollow noreferrer">The error I get on the App</a></p>