function fb_user_user_load in Drupal for Facebook 7.4
Same name and namespace in other branches
- 7.3 fb_user.module \fb_user_user_load()
File
- ./
fb_user.module, line 105 - This module manages relations between local Drupal user accounts and their accounts on facebook.com.
Code
function fb_user_user_load($users) {
$result = db_query('SELECT uid, fbu FROM {fb_user} WHERE uid IN (:uids)', array(
':uids' => array_keys($users),
));
foreach ($result as $record) {
$users[$record->uid]->fbu = $record->fbu;
if (empty($users[$record->uid]->picture)) {
$users[$record->uid]->picture = (object) array(
'uri' => '//graph.facebook.com/' . $record->fbu . '/picture',
);
}
}
}