My init line:
<script type="text/javascript">function initFB(){FB_RequireFeatures(["XFBML"], function(){FB.init("xxxx", "xd_receiver.htm");});}</script>
My logout link:
<a onclick="FB.Connect.logoutAndRedirect('account/logout');">Log Out</a>
I have a valid session in my webapp, and a valid Facebook session, because my user display pic shows.
The only way that I can get Facebook to log out properly with either this function or .logout() is to throw a
return false;
into the mix, as so:
<a onclick="FB.Connect.logoutAndRedirect('account/logout'); return false;">Log Out</a>
This, however, still does not redirect anywhere. App just sits there after logging out of Facebook, so site session still live, and broken.
This thing is bloody frustrating, so if anyone can make suggestions as to why this will not redirect, I am all ears.