julianlam / nodebb-plugin-sso-facebook

Single Sign-On Plugin for NodeBB
BSD 2-Clause "Simplified" License
19 stars 19 forks source link

Unlink Facebook account #43

Closed moonmidas closed 7 years ago

moonmidas commented 7 years ago

I have an admin user. Then I created another user using my Facebook account. However, when I associated my account with the admin user, I lost the access to the FB profile.

How can I unlink the Facebook account from the admin user?

julianlam commented 7 years ago

@estebanconstante The associations are kept in the hash fbid:uid. You'll just want to change the uid for your facebook account inside your database to point to the non-admin user again.

In redis, it's as simple as redis-cli hset fbid:uid <your fbid> <your uid>

Mongo is db.objects.update({ _key: "fbid:uid" }, { $set: { "<your fbid>": "<your uid>" } });

julianlam commented 7 years ago

Back up your db first, just in case 😄

moonmidas commented 7 years ago

Awesome! And superb support wow.