diff --git a/fb_devel.module b/fb_devel.module
index d34f942..530bb31 100644
--- a/fb_devel.module
+++ b/fb_devel.module
@@ -494,7 +494,7 @@ function fb_devel_fbu_page($fbu = NULL) {
 
       $items = array();
       foreach ($local_friends as $uid) {
-        $account = user_load(array('uid' => $uid));
+        $account = user_load($uid);
         $items[] = theme('username', $account);
       }
       if (count($items)) {
diff --git a/fb_user.module b/fb_user.module
index 5fcae72..216ed06 100644
--- a/fb_user.module
+++ b/fb_user.module
@@ -1041,7 +1041,7 @@ function fb_user_get_local_user_by_email($fbu) {
       $info = $_fb->api($fbu);
       if (isset($info['email']) &&
           ($email = $info['email'])) {
-        return user_load(array('mail' => $email));
+        return user_load_by_mail($email);
       }
     }
     catch (Exception $e) {
