如何使用Facebook主页的图谱API按类型=状态过滤新闻Feed?

时间:2011-11-08 07:06:49

标签: facebook facebook-graph-api feed

Facebook主页的图谱API:

请求:

https://graph.facebook.com/me/home?access_token=.....

JSON回复:

{
   "data":[
      {
         "type":"status",
         "id":"100003063094116_114168602028576",
         "created_time":"2011-11-07T16:28:44+0000"
      },
      {
         "type":"link",
         "id":"100003063094116_114172085361561",
         "created_time":"2011-11-07T16:27:44+0000"
      }
   ],
   "paging":{
      "previous":"https://graph.facebook.com/me/home?fields=type&limit=2&access_token=....&since=1320683324",
      "next":"https://graph.facebook.com/me/home?fields=type&limit=2&access_token=....&until=1320683263"
   }
}

如何过滤"type"="status"的新闻Feed?

1 个答案:

答案 0 :(得分:0)

您可以尝试使用FQL查询:

SELECT status_id, time, source, message FROM status WHERE uid = me()

me()可能会被任何其他Facebook用户ID替换

and may be tested here