使用FacebookGraphAPI获取整个post对象,这是我们通过FacebookWebHook获得的

使用FacebookGraphAPI获取整个post对象,这是我们通过FacebookWebHook获得的,facebook,facebook-graph-api,Facebook,Facebook Graph Api,以下是我在我的端点上得到的页面帖子回复,该端点在Facebook应用程序中注册为web钩子 {entry=[{id=407976012733132, time=1451993872, changes=[{field=feed, value={item=post, verb=add, post_id=407976012733132_422139821316751, is_hidden=false, sender_id=192841237729683, message=Conversation st

以下是我在我的端点上得到的页面帖子回复,该端点在Facebook应用程序中注册为web钩子

{entry=[{id=407976012733132, time=1451993872, changes=[{field=feed, value={item=post, verb=add, post_id=407976012733132_422139821316751, is_hidden=false, sender_id=192841237729683, message=Conversation started on 5th Jan 2016 by a user, sender_name=Naresh Pokuri}}]}], object=page}
但是当我用Graph API()查询帖子信息时,我得到了以下响应

{
   "created_time": "2016-01-05T11:37:52+0000",
   "message": "Conversation started on 5th Jan 2016 by a user",
   "id": "407976012733132_422139821316751"
}

但是我想知道
sender\u id
sender\u name
就像web钩子响应一样。还有什么方法可以获得这些信息吗?

我可以通过查询字符串中的fields参数获得这些详细信息,如下所示

那么答案是

{
   "from": {
      "name": "Naresh Pokuri",
      "id": "192841237729683"
   },
   "id": "407976012733132_422139821316751"
}