Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php facebookapi:can';t删除事件日志,返回:(#100)无效的日志id_Php_Facebook_Api_Events - Fatal编程技术网

Php facebookapi:can';t删除事件日志,返回:(#100)无效的日志id

Php facebookapi:can';t删除事件日志,返回:(#100)无效的日志id,php,facebook,api,events,Php,Facebook,Api,Events,我代表我的用户在活动的墙上张贴了一些东西: $event_id = "XXXXXXXXXXXXXXX"; $message = array( 'access_token' => $token, 'message' => 'This is just a test...', 'name' => 'Title', 'caption' => "Caption goes here" ); $result = $facebook->api($event_id

我代表我的用户在活动的墙上张贴了一些东西:

$event_id = "XXXXXXXXXXXXXXX";

$message = array(
  'access_token' => $token,
  'message' => 'This is just a test...',
  'name' => 'Title',
  'caption' => "Caption goes here"
);

$result = $facebook->api($event_id."/feed", "POST", $message);
然后我读了一篇帖子,内容如下:

$post_id = $result["id"];

// for example: 387914681250830_387939784581653
// where the format is EVENTID_POSTID
…我试图删除相同的帖子:

try {
  $facebook->api($post_id, "DELETE");
}
catch (FacebookApiException $e) {
  $error = $e->getMessage();
  print $error;
}
结果是:

(#100) Invalid post id
我甚至尝试过这些版本(假设post ID是387914681250830_38793978784581653):

所以现在我被绊倒了。 有趣的是,API返回了一个POST_ID,但结果却是无效的:-((


有什么想法吗?我如何删除活动墙上的帖子(由我的应用程序创建)(归我所有)?

387914681250830_38739784581653是正确的终点,刚刚用Graph API Explorer进行了测试。使用找到帖子并尝试删除。如果仍然返回无效的帖子id,请向Facebook发送错误报告。谢谢!我已经用Graph API Explorer进行了测试。从下拉列表中选择我的应用,然后粘贴帖子id,选择Ed删除并提交…相同错误:(#100)无效的帖子ID,当您选择“获取”时,您是否获取帖子数据?可能它已被删除。如果您获取了帖子数据,但无法删除它,并且帖子是您的/您是页面/事件的管理员?我甚至无法在Graph API Explorer中找到帖子…它返回“false”。:-(是的,我是帖子和活动的所有者。帖子没有被删除……我可以这样查看:www.facebook.com/203400569781524帖子是否存在于facebook中?你能提供链接吗?
$facebook->api("/387914681250830_387939784581653/", "DELETE"); // (#100) invalid post_id

$facebook->api("/387939784581653", "DELETE"); // Unsupported delete request.

$facebook->api("/387914681250830/feed/387939784581653", "DELETE"); // Unknown path components: /387939784581653