How do I unlink a user from a facebook account?

Comments

jesss’s picture

Category: feature » bug

I've figured out how to do this on the Facebook end (http://www.facebook.com/editapps.php), but the Facebook connect tab still has a line saying "Your account is linked with your Facebook account." There seems to be a missing step -- the user information isn't being deleted from the fbconnect_users table.

budda’s picture

Version: 6.x-1.0-beta7 »
Category: bug » feature

Post-Remove URL functionality needs implementing in the Drupal module. Details on http://wiki.developers.facebook.com/index.php/Logging_Out_And_Disconnect...

tsi’s picture

Woul'd love to see this feature working too.

mojo78’s picture

Has anyone got the broad strokes of what's needed to implement this? Kind of a newbie at Drupal development (mainly hacking around code thus far) but willing to get involved if i knew where to start.

budda’s picture

the fbconnect.module would need to implement a menu callback that receives a POST of data to it from facebook side. The menu url is set in the Facebook.com app configuration side.

Using the wiki page above, receive the POST data in and find the matching user on the drupal side and remove their facebook account details. I guess you'll need to just reverse whatever happens in the fbconnect.module when somebody first connects their account?

budda’s picture

the fbconnect.module would need to implement a menu callback that receives a POST of data to it from facebook side. The menu url is set in the Facebook.com app configuration side.

Using the wiki page above, receive the POST data in and find the matching user on the drupal side and remove their facebook account details. I guess you'll need to just reverse whatever happens in the fbconnect.module when somebody first connects their account?

plan9’s picture

Until there is a function to do this in the module - is it advisable to delete unlinked users from the fbconnect database?

If so - which tables in fbconnect_users and fbconnect_profile need to be dropped?

Thanks

G

todddevice’s picture

subscribing

hedac’s picture

this is a must.

smooshy’s picture

subscribe

matthew petty’s picture

me too

adamgerthel’s picture

I agree, this is very important

jamix’s picture

Submitted a patch which provides this functionality in 5.x-1.0-beta2, needs porting to 6.x.

smooshy’s picture

subscribing

smooshy’s picture

jamix's patch ported to 6.x here

vectoroc’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.