Logout from Facebook - iOS

I tried to logout from facebook using

LoginManager().logOut()
or
PFFacebookUtils.facebookLoginManager().logOut()

but not working. When I go to the login screen, the screen displays the old account logged in without the option to log out. What do I need to do, was there any configuration missing?

Versions:
Parse 1.17.3
FBSDKCoreKit 5.15.1

Have you tried PFUser.logOut()?

Yes, i currently use PFUser.logout().