致命错误:未捕获OAuthException:(#200)需要扩展权限:在第1033行的/home/a1607618/public_html/base_facebook.php中抛出read_stream
我的应用倾向于阅读用户墙帖
if ($user)
{
$comments = $facebook->api('/me/home');
d($comments);
}
function d($d){
echo '<pre>';
foreach ($d as $a => $b)
{
print "$a: $b\n";
}
echo '</pre>';
}
我给予我的应用扩展权限:read_stream通过Apps_ &gt; connectme _&gt;权限
,这是第1033行
protected function throwAPIException($result) {
$e = new FacebookApiException($result);
switch ($e->getType()) {
// OAuth 2.0 Draft 00 style
case 'OAuthException':
// OAuth 2.0 Draft 10 style
case 'invalid_token':
$message = $e->getMessage();
if ((strpos($message, 'Error validating access token') !== false) ||
(strpos($message, 'Invalid OAuth access token') !== false)) {
$this->setAccessToken(null);
$this->user = 0;
$this->clearAllPersistentData();
}
}
throw $e;
}