Facebook Connect - logout issue

Posted by Gublooo on Stack Overflow See other posts from Stack Overflow or by Gublooo
Published on 2010-04-20T01:16:08Z Indexed on 2010/04/20 1:23 UTC
Read the original article Hit count: 555

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

© Stack Overflow or respective owner

Related posts about facebook

Related posts about facebook-connect