gpt4 book ai didi

facebook - 如何使用 Facebook 主页的 Graph API 按 type=status 过滤新闻提要?

转载 作者:行者123 更新时间:2023-12-02 19:37:24 26 4
gpt4 key购买 nike

Facebook 主页的 Graph 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"的新闻提要?

最佳答案

您可以尝试 FQL 查询:

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

me() 可以替换为任何其他 Facebook 用户 ID

and may be tested here

关于facebook - 如何使用 Facebook 主页的 Graph API 按 type=status 过滤新闻提要?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8047009/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com