You are here

function fb_user_post_remove_cb in Drupal for Facebook 5

The post-remove page is visited by Facebook after a user removes the application. The user never visits the page, it is simply called by Facebook to notify us of the change.

1 string reference to 'fb_user_post_remove_cb'
fb_user_menu in ./fb_user.module

File

./fb_user.module, line 210
This module allows Drupal user records to be associated with Facebook user ids. It can create local user accounts when Facebook users visit an application's canvas pages.

Code

function fb_user_post_remove_cb() {
  global $fb, $fb_app, $user;
  if (fb_verbose()) {
    watchdog('debug', 'fb_user_post_remove_cb, session_id is ' . session_id() . ' session_name is ' . session_name() . dprint_r($_REQUEST, 1) . dprint_r($user, 1) . dprint_r($fb_app, 1));
  }

  // Update our database to reflect application is NOT added
  _fb_user_track($fb, $fb_app, $user);

  // TODO: invoke hook_fb to let other modules know about removal
  // Ideally, we would destroy the user's session here.  However the session
  // currently active is not the same as the user's.  We have no robust way to
  // delete their session.
  // Nothing to return
  exit;
}