I\'m trying to log out of a website i\'ve created with Facebook integrated. Logging in works fine, but when I want to log out Firebug consistently gives me this error:
I've tried something like this:
function fbLogout(){ if(typeof FB.logout == 'function'){ if (FB.getAuthResponse()) { FB.logout(function(response) { window.location.href = PROJECT_PATH + '/index/logout'; }); return; } }; window.location.href = PROJECT_PATH + '/index/logout'; return; }