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

  1. eddioot
    Posted 3 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:

    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?

  2. eddioot
    Posted 3 years ago #

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

  3. hachesilva
    Posted 2 years ago #

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

  4. eddioot
    Posted 2 years ago #

    Hi ZilverDragOn,

    i use this plugin now:

    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