Facebook Connect - logout issue
- by Gublooo
Hello
I think I'm missing a very silly detail but the logout funtion of facebook connect is not working for me.
I followed the steps posted in this answer by Typeoneerror but I cant get it to work.
This is my logout javascript function
function logout()
{
FB.init("API_KEY", "/xd_receiver.htm");
FB.Connect.logoutAndRedirect("/logout/url");
}
When I click on it - nothing happens - In the browser status bar - For a second I see a message which says waiting for facebook - but I continue to stay on the same page. It does not redirect me nor does it log me out of facebook either.
Just to see if the function is being called - I removed FB.init call from the function and then I get the error
Error Message: 'FB.Connect' is null or not an object
Any suggestions on how to debug this.
Thanks a lot