问题描述
我知道这将使用户从可口可乐页面检索最新的10条帖子.
I know this will let the user retrieve the latest 10 posts from cocacola page.
https://graph.facebook.com/cocacola/posts/access_token= [####]& limit = 10
https://graph.facebook.com/cocacola/posts/access_token=[####]&limit=10
有什么办法可以同时从可口可乐和百事可乐 Facebook页面上检索最新的10条帖子.示例:
Is there any way I can retrieve the latest 10 posts from cocacola and pepsi Facebook pages at the same time.Example:
https://graph.facebook.com/cocacola&pepsi/posts/access_token= [####]& limit = 10
https://graph.facebook.com/cocacola&pepsi/posts/access_token=[####]&limit=10
任何人都可以帮忙吗?
谢谢,萨米人
推荐答案
对于您引用的示例,它是https://graph.facebook.com/posts?ids=cocacola,pepsi&access_token=[####]&limit=10
For the example you quoted, it'shttps://graph.facebook.com/posts?ids=cocacola,pepsi&access_token=[####]&limit=10
通常情况下,>将起作用.
In the general case https://graph.facebook.com/?ids=<list of IDs>&fields=<list of fields
> will work.
这在主要Graph API文档的选择"标题下进行了简要介绍. '
This is covered briefly on the main Graph API documentation under the heading 'selection'
这篇关于使用Graph API同时从多个Facebook页面检索公共帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!