I need to logout from Facebook from my application. I tried to watch the other posts, but I didn't find what I need...
I have realised a link like<a href="javascript: FB_LOGOUT()">LOGOUT</a>
and I have written a function, but it doesn't work... I tried this 3 methods, but none of them works.
function FB_LOGOUT(){
//FB.logout(function(response) {
// window.location.reload(true);
//});
//FB.Event.subscribe('auth.logout', function(response) {
// window.location.reload();
//});
//FB.logout(function()
//{
// top.location.href = 'http://google.com/';
//});
}
Can you tell me how to logout from Facebook from my application? Please explain everything you think I'd better know, I'm really ignorant in this field... Thank you :)