鉴于此代码:
$user_profile = $facebook->api('/me');
echo $user_profile['name'];
我看到一些用户出现以下错误:
PHP Notice: Undefined index: name
在什么条件下,名字会丢失吗?
更新:与我没有名字的所有用户共同的一点是他们的个人资料“链接”不起作用。当我访问它时,我得到一个包含以下错误消息的页面:
The page you requested was not found.
You may have clicked an expired link or mistyped the address. Some web addresses are case sensitive.
Return home
Go back to the previous page