0

我想按照Event API中的说明更新事件的图片。

$eventId = '291145580981541';
$accessToken = $facebook->getAccessToken(); // have tested, is correct
$data = array('source' => '@'.realpath($file));

try {
    $result = $facebook->api('/$eventId/picture?access_token=$accessToken', 'POST', $data);
    echo $result;
} catch(Exception $e) {
    echo "Exception: $e";
}

我得到的结果:

Exception: OAuthException: (#200)

我究竟做错了什么?

4

1 回答 1

0

错误#200是权限错误。您很可能没有create_event权限

https://developers.facebook.com/docs/reference/api/event/#picture

于 2013-06-06T14:32:29.873 回答