WordPress.org

Ready to get started?Download WordPress

Forums

Facebook AWD All in one
[resolved] Logged as admin (6 posts)

  1. markzero
    Member
    Posted 2 years ago #

    Hi,

    I'm using WordPress on different language (Serbian - http://sr.wordpress.org/).
    With translated version of WP, I am getting logged in as admin. I tried changing my (admin) email and username in WP but no luck.
    Any clues?
    Great plugin though, works on default WP installation.

    http://wordpress.org/extend/plugins/facebook-awd/

  2. AHWEBDEV
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    To unsync an account, you should first connect with WP account.
    Then connect you with facebook account of your choice.

    Then facebook account and WP account will be linked.

    To unsync an account.
    You can't in the interface.
    But you can delete option of linking.
    fb_email
    fb_uid
    You can delete it adding a little code in your theme functions.php file

    /**
    * Unsync Facebook account with action = unsync_fb
    * To use it, call an url of your site, and to the end of the url the
    * get parameter http://AN_URL_ON_YOUR_SITE/?action=unsync_fb
    */
    function unsync_fbaccount(){
      $global $AWD_facebook;
      if($_GET['action']=='unsync_fb'){
        update_user_meta($AWD_facebook->current_user->ID,'fb_email','');
        update_user_meta($AWD_facebook->current_user->ID,'fb_uid','');
      }
    }
    //this add the function to the init of plugins Facebook AWD
    add_action('AWD_facebook_plugins_init','unsync_fbaccount');

    I will add it to the next release with possibility to unsync from admin.

  3. markzero
    Member
    Posted 2 years ago #

    Great! Code is exactly what I was looking for. So basically we can just delete straight from database too.

    Also I figured what was happening right after I started this thread and what you wrote - when I first logged on to my fresh WP installation I was logged to Facebook too, so it synced automatically accounts and I couldn't test users.
    Actually I could with making fake account on FB and use it for testing (perhaps) but that's a hassle..

    Thanks!

  4. AHWEBDEV
    Member
    Plugin Author

    Posted 2 years ago #

    Yes i update it, but you can delete it too.

  5. Colir
    Member
    Posted 2 years ago #

    Hi,
    i've exactly the same issue,
    when login with facebook connect, i appear as admin

    i can't unsync my admin account and my fb account..
    need help.
    thanks

  6. AHWEBDEV
    Member
    Plugin Author

    Posted 2 years ago #

    Please submit a new bug tracker ticket
    here => http://trac.ahwebdev.fr/projects/facebook-awd

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic