title: How to Remove the Logout Button and store the session permanently FBSDK IOS using Swift
body: <p>I am creating an app in which user can Sign in using Facebook. I am fetching user info like profile picture Username etc. Now when i tap on Login with facebook button FB ask for permission i am loged in. but then there is Logout Button displaying at the same place as LoginWithFacebook button was. I want to Remove the logout button because i do not want the user to log out. I want to store the session and use it all the way long until app is unintsalled because I do not want the user to login each time when he opens the app.
      This is my code so far</p>
  
  <pre><code>class ViewController: UIViewController, FBSDKLoginButtonDelegate {
  @IBOutlet weak var btnFacebook: FBSDKLoginButton!
  @IBOutlet weak var ivUserProfileImage: UIImageView!
  @IBOutlet weak var lblName: UILabel!
  var strFirstName: String!
  var strLastName: String!
  var strPictureURL: String!
  
  override func viewDidLoad() {
      super.viewDidLoad()
      configureFacebook()
  }
  
  func configureFacebook()
  {
      btnFacebook.readPermissions = ["public_profile", "email", "user_friends"];
      btnFacebook.delegate =  self
  }
  
  func loginButton(loginButton: FBSDKLoginButton!, didCompleteWithResult result: FBSDKLoginManagerLoginResult!, error: NSError!)
  {
      FBSDKGraphRequest.init(graphPath: "me", parameters: ["fields":"first_name, last_name, picture.type(large)"]).startWithCompletionHandler { (connection, result, error) -&gt; Void in
          //fetching first and last name
          self.strFirstName = (result.objectForKey("first_name") as? String)!
          self.strLastName = (result.objectForKey("last_name") as? String)!
          self.strPictureURL = (result.objectForKey("picture")?.objectForKey("data")?.objectForKey("url") as? String)!
          // contactinating first and last name
          self.lblName.text = "Welcome, \(self.strFirstName) \(self.strLastName)"
          // assinging image
          self.ivUserProfileImage.image = UIImage(data: NSData(contentsOfURL: NSURL(string: self.strPictureURL)!)!)
          }
  }
  
  func loginButtonDidLogOut(loginButton: FBSDKLoginButton!) {
      let loginManager: FBSDKLoginManager = FBSDKLoginManager()
      //for logging out from facebook
      loginManager.logOut()
  }
  </code></pre>