Under edit > Facebook application

It asks if you want to delete application. I did. When I did, my drupal account was deleted. i was logged in as user 1.

Marked as critical because if it is user 1 like myself, you are in trouble.

Chris

Comments

socialnicheguru’s picture

Edit above:

1. delete the application that I created in Drupal
2. Under edit account (user/me/edit), click facebook application
3. under facebook application click delete facebook application

and your account is deleted

I started with drupal (ie user 1) so why was this deleted?

Chris

Dave Cohen’s picture

To the best of my knowledge, Drupal for Facebook never deletes a user account. This is mysterious.

Dave Cohen’s picture

Priority: Critical » Normal
Status: Active » Closed (won't fix)

The "delete" button you hit was the button to delete the user account. It was under user/me/edit. Drupal places it on all forms there. Nothing to do with facebook modules here.

I suppose the modules could check that a Facebook Application is configured before adding that tab, but if there is no such node, you really should not have the modules enabled at all.

david.moore.ipg’s picture

Version: 6.x-3.x-dev » 6.x-3.1
Status: Closed (won't fix) » Active

I had the same thing happen to me recently - it deleted user 1 which took me hours to recover from. I probably did click delete on this page instead of save, but it is too easy of a mistake to make.

Under the User Account there is a tab labeled Facebook (this is important)

If the user is connected through a facebook account, there is a checkbox checked. The instructions say "Uncheck then click save to delete this connection"

But there are two buttons at the bottom. Save and Delete.

We are instructed to click the save button but the instructions use both the words "save" and "delete", so it is an easy mistake to make.

Hitting delete, deletes the entire user account, not just the Facebook connection.

Suggestion 1 - change instructions to read "Uncheck then click save to disconnectthis connection

Suggestion 2 - remove the delete button entirely - it works the same as the delete button on the account tab. The context of having it on the Facebook tab could easily lead someone to believe they are deleting just the facebook connection, not the entire user account.

Dave Cohen’s picture

Title: Deleting application deletes user (deleted user 1) » Delete button on user/NNNN/edit/fb_user deletes entire user account
Version: 6.x-3.1 » 6.x-3.x-dev
Category: bug » feature

I'm not opposed to removing the delete button. But, again, the module does not put it there. It implements hook_user(), it is drupal core that puts the delete button there. As far as I'm concerned this is standard Drupal behavior, for better or worse.

If someone submits a patch that accomplishes this, maybe a clause in fb_user_form_alter(), that would help.

udvranto’s picture

This happened to me. :(

13rac1’s picture

Status: Active » Closed (won't fix)

Won't fix from 2.5 years ago. Re-open to submit a patch.

mayur.pimple’s picture

Hi Dave
My admin account is also remove same as said above condition.