0
$user_location = $facebook->api('/me','GET');

echo " Location: " . $user_location['location'];

上面的代码返回“位置:数组”。这是 Facebook API 问题还是需要特定权限?

4

1 回答 1

1

你必须像这样打印 -

print_r($user_location['location']);

// location name
echo " Location: " . $user_location['location']['name'];
于 2013-08-23T08:13:35.627 回答