Facebook auth.logout and auth.authResponseChange events do not fire when logging out via fb:login-button

1.3k Views Asked by At

I am using the fb:login-button in an ASP.NET MVC web application. Initially I was setting autologoutlink="true" but now this attribute appears to have been deprecated by Facebook as it is no longer listed in the documentation.

When I do supply it, the button does change to "Logout" and does indeed log me out of Facebook, but my attempts to subscribe to either auth.logout or auth.authResponseChange do not work- neither fire (auth.login works fine though).

What is the current recommended way for the user to log out of my site and Facebook?

Or is Facebook trying to avoid people logging out at all?

I have seen many recommendations to first check if the user is logged in and if so, to not even render the FB login button at all. In any case I need to get a hook into the Facebook logout to redirect to my own Logout page to perform my own actions on the server.

0

There are 0 best solutions below