有没有办法用facebook图api我可以在一次通话中使用多个postid查询帖子api或feed api? 以下不起作用,但是存在类似的东西吗? {的PageId} /讯息?IDS = {PostId1},{PostId2}
答案 0 :(得分:0)
是的,这是可能的。如果您有两个post_id,例如21898300328_10154059491180329
和8062627951_10153779074657952
,则调用看起来像
/?ids=21898300328_10154059491180329,8062627951_10153779074657952&fields=id,from,message
导致
{
"21898300328_10154059491180329": {
"id": "21898300328_10154059491180329",
"from": {
"name": "BuzzFeed",
"id": "21898300328"
},
"message": ""Your teen films ruined us, America.""
},
"8062627951_10153779074657952": {
"id": "8062627951_10153779074657952",
"from": {
"name": "TechCrunch",
"id": "8062627951"
},
"message": "Sprinklr sure is making a lot of acquisitions"
},
}
见