function tja_get_facebook_about_me($user) { if (!tja_is_facebook_user($user)) { return false; } $result = fbc_api_client()->users_getInfo($user->fbuid, 'about_me'); return $result[0]['about_me']; }
function tja_get_avatar($user, $width, $height, $crop = true, $try_normal = true) { if (tja_is_facebook_user($user)) { return tja_get_facebook_avatar($user, $width, $height); } elseif ($avatar = tja_get_avatar_upload($user, $width, $height, $crop)) { return $avatar; } elseif ($try_normal === true) { preg_match('/src=\'([^\']*)/', get_avatar($user->user_email, $width), $matches); return $matches[1]; } }