function fb_user_user_login in Drupal for Facebook 7.4
Same name and namespace in other branches
- 7.3 fb_user.module \fb_user_user_login()
Implements hook_user_login().
When a user logs, and a facebook token is known, we have a chance to map accounts.
File
- ./
fb_user.module, line 168 - This module manages relations between local Drupal user accounts and their accounts on facebook.com.
Code
function fb_user_user_login(&$edit, $account) {
if ($token = fb_user_token()) {
// User is connected to facebook and logged into drupal.
_fb_user_process_new_token($token);
}
}