2012-03-23 81 views
2

我知道这会让用户从cocacola页面检索最新的10篇文章。使用图形API同时从多个Facebook页面检索公共帖子

https://graph.facebook.com/cocacola/posts/access_token=[####] &上限= 10

有没有什么办法可以检索可口可乐和百事可乐最新的10个职位 Facebook页面在同一时间。 实施例:

https://graph.facebook.com/cocacola &百事可乐/帖/ =的access_token [####] &限制= 10

谁能帮助?

感谢, 萨米

回答

5

对于你所说的例子,它的 https://graph.facebook.com/posts?ids=cocacola,pepsi&access_token=[####]&limit=10

在一般情况下https://graph.facebook.com/?ids=<list of IDs>&fields=<list of fields>将工作。

这是覆盖在短暂的标题“选择”

+1

非常感谢您 – Sami 2012-03-23 20:05:49

+0

main Graph API documentation反正我有可以从两页,以便它们通过CREATED_TIME合并的帖子? – Sami 2012-03-28 14:15:21

+0

array_merge后跟usort? – Igy 2012-03-28 21:44:49

相关问题