2011-11-08 38 views
4

Facebook的家的图形API:如何使用Facebook家里的Graph API通过type = status过滤新闻Feed?

请求:

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?

回答

0

您可以尝试FQL查询,而不是:

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

我()可以通过任何其他的Facebook用户ID

and may be tested here

+0

你好鲁道夫更换,我怎么能使用FQL? –

+0

请求网址是:https://graph.facebook.com/fql?q=SELECT status_id,时间,来源,消息FROM状态,其中uid = me(),但是“https://graph.facebook.com/我/家“对应的FQL是? –

+0

您能否指定您对https://graph.facebook.com/me/home?access_token = .....调用请求的方式? –

相关问题