On Web, this method will log the user out of both your site and Facebook. On iOS and Android, it will log the user out of your Application.

On all the platforms it will also invalidate any access token that you have for the user that was issued before the logout.


public static void LogOut()



Best Practices

On Web, you almost certainly should not use this function, which is provided primarily for completeness. Having a logout control inside a game that executes a Facebook-wide logout will violate users' expectations. Instead, allow users to control their logged-in status on Facebook itself.