当我尝试检索用户的性别时..它返回正确的值。我使用下面的代码
$user_profile = $facebook->api('/me','GET');
$user_gender = $user_profile['gender'];
echo "Gender: " . $user_gender;
但是当我尝试使用以下代码检索用户朋友性别时,它返回1
$user_ran= "100002944655532";
$user_gender = $user_ran['gender'];
echo "Gender: " . $user_gender;