Facebook posts\使用GRAPH API的POST的id

Facebook posts\使用GRAPH API的POST的id,facebook,facebook-graph-api,Facebook,Facebook Graph Api,我使用Graph API在用户墙上发布帖子 我如何才能获得这些帖子的帖子ID,我现在这样做,以后我可以这样做 在这些帖子上读或写评论 FB.api('/me/feed', 'post', { link: body,picture:PICTURE,name:'NAME',description:'DESCRIPTION',caption:'CAPTION',message:'MESSAGE' }, function(response) { if (!response || respo

我使用Graph API在用户墙上发布帖子

我如何才能获得这些帖子的
帖子ID
,我现在这样做,以后我可以这样做 在这些帖子上读或写评论

FB.api('/me/feed', 'post', { link:  body,picture:PICTURE,name:'NAME',description:'DESCRIPTION',caption:'CAPTION',message:'MESSAGE'      }, function(response) {
 if (!response || response.error) {
  alert('Error occured');
} else {
 alert('Post ID: ' + response.id); //response.id is the post ID of the post published.
}
对不起,你正在使用图形api…我的错。 发布帖子时,您将在响应中获得id。
检查一下。它应该是JSON格式的。“id:POST_id”之类的东西。

你看过回复了吗?