$user_location = $facebook->api('/me','GET');
echo " Location: " . $user_location['location'];
上面的代码返回“Location:Array”。这是Facebook API问题还是需要特定权限?
答案 0 :(得分:1)
你必须像这样打印 -
print_r($user_location['location']);
// location name
echo " Location: " . $user_location['location']['name'];