WordPress.org

Support

Support » Plugins and Hacks » Facebook AWD All in one » [Resolved] [Plugin: Facebook AWD All in one] Logged as admin

[Resolved] [Plugin: Facebook AWD All in one] Logged as admin

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AHWEBDEV

    @ahwebdev

    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.

    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!

    Plugin Author AHWEBDEV

    @ahwebdev

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

    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

    Plugin Author AHWEBDEV

    @ahwebdev

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Facebook AWD All in one] Logged as admin’ is closed to new replies.
Skip to toolbar