Support » Plugins and Hacks » [Resolved] [Plugin: Facebook connect] cannot log out

[Resolved] [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:

    I created a file called fb_logout.php and placed it in the root of my website. In this file i put:

    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?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Facebook connect] cannot log out’ is closed to new replies.
Skip to toolbar