Log the user out of your site and Facebook
FB.logout(function(response) {
// user is now logged out
});
FB.logout will log the user out of both your site and Facebook. 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. More info on how to extend the access token here.
| Name | Type | Description |
|---|---|---|
| cb | Function | The callback function. |