直到今天我有一个运行良好的应用程序,我注意到$fb->api('/me')
没有返回任何内容,而$fb->getUser()
仍然返回UID
。
我没有改变任何东西,$fb对象很简单:
$fb = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
));
也许是脸书的临时问题?谢谢!
尝试并捕获并检查您得到的异常。