WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Facebook connect] cannot log out (4 posts)

  1. eddioot
    Member
    Posted 2 years ago #

    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-facebook

    I 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?

  2. eddioot
    Member
    Posted 1 year ago #

    I was able to resolve it by using another plugin for it.

  3. hachesilva
    Member
    Posted 1 year ago #

    Hey eddioot, please tell us the plugin you used to solve this.

  4. eddioot
    Member
    Posted 1 year ago #

    Hi ZilverDragOn,

    i use this plugin now:
    http://www.oneall.com/services/

    It takes some time to configure but it works great!

    Good luck

Topic Closed

This topic has been closed to new replies.

About this Topic