Facebook API:无法删除事件帖子,返回:(#100)无效的帖子ID

时间:2012-05-16 10:57:24

标签: 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."/feed", "POST", $message);

然后我读出了这样的帖子ID:

$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

我甚至尝试过这些版本(假设帖子ID为387914681250830_387939784581653):

$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

所以现在我被困了。 有趣的是,API返回的POST_ID结果为INVALID。 : - ((

任何想法如何在活动墙(我拥有)上删除帖子(由我的应用创建)?

0 个答案:

没有答案