I used Facebook Connect to link an existing account to Facebook ID. Then I logged out and removed user. According to code in function fb_user_user in fb__user.module

<?php
elseif ($op == 'delete') {
    db_query("DELETE FROM {fb_user_app} WHERE uid=%d",
             $account->uid);
  }
?>

the row in fb_user_app should be removed. But instead the id is just changed to 0.

Comments

Dave Cohen’s picture

Possibly the row was deleted, then you visited your site while still logged into facebook. If so the app was still authorized and it was recorded as the latest visit from an authorized user.

merilainen’s picture

I'm pretty sure that is not the case. I'm using two different browsers and the other one didn't do any refreshing before I checked the database. The row was there right after deleting the user with admin account. The uid was just changed to 0 on that row.

unclejustin’s picture

I've noticed the same behavior as well.