[Plugin: Facebook connect] cannot log out
-
I’ve got a problem that is driving me crazy. I’m using facebook connect to let users login to my website and that works great.
The only problem is that ones a user is logged on, he is doomed to stay logged in. Logging out does not work 🙁
I am using the default:
<?php echo wp_logout_url(); ?>In the source code i see is tries to do something with facebook:
<a href="http://picturepalace.eu/wp-login.php?action=logout&_wpnonce=3fc4f461c8&&redirect_to=http%3A%2F%2Fpicturepalace.eu%3Ffbconnect_action%3Dpostlogout" title="Logout">Logout</a>But the user still stays logged in.
I found this and tried it but that did’nt work also:
http://stackoverflow.com/questions/2395292/log-out-of-both-wordpress-facebookI created a file called fb_logout.php and placed it in the root of my website. In this file i put:
<?php session_destroy(); header('Location: http://picturepalace.eu'); ?>In my header i put:
<a href="#" onclick="FB.Connect.logoutAndRedirect('/fb_logout.php')">Sign out</a>This doesn’t work but maybe i am doing something wrong.
You guys have any advise on this?
The topic ‘[Plugin: Facebook connect] cannot log out’ is closed to new replies.