The method FB.logout()
logs the user out of your site and, in some cases, Facebook.
Consider the 3 scenarios below:
FB.logout(function(response) {
// user is now logged out
});
FB.logout will log the user out of your site and, in some cases, Facebook (see the cases above). You will need to have a valid access token for the user in order to call the function.
Calling FB.logout
will also invalidate the access token that you have for the user, unless you have extended the access token.
Name | Type | Required | Description |
---|---|---|---|
| Function | yes | The callback function. |