function fbc_getName()
 {
     // OVERRIDE THE USER'S NAME IF IT IS A FACEBOOK USER, REGARDLESS
     if ($this->fbc_is_facebook_user()) {
         $info = facebook_get_fields($this->fbc_uid, array('name'));
         if (!empty($info)) {
             return $info['name'];
         }
     }
     return $this->fbc_name;
 }
示例#2
0
 function getName()
 {
     // override the user's name if it is a facebook user, regardless
     if ($this->is_facebook_user()) {
         $info = facebook_get_fields($this->fb_uid, array('name'));
         if (!empty($info)) {
             return $info['name'];
         }
     }
     return $this->name;
 }