In some cases in my application i need to log the user out, but i only have the FBSDKLoginButton instance in my view controller and implementing the
func loginButton(loginButton: FBSDKLoginButton!, didCompleteWithResult result: FBSDKLoginManagerLoginResult!, error: NSError!)
Ok, here is the thing for anyone needs assistance. I managed to log my users out using FBSDKLoginManager instance
Apparently and i don't know if is it documented or not FBSDKLoginManager watches
let loginManager = FBSDKLoginManager() loginManager.logOut() // this is an instance function
Logs the user out, what i misunderstood that logOut is not a class function.
hope that helps someone!