I use this code
Do the redirect yourself - add this to JavaScript, somewhere after FB.init():
FB.init()
This function will fire when logout through the FB button happens.