使用Graph API同时从多个Facebook页面检索公共帖子 [英] Retrieving public posts from multiple Facebook pages at the same time using the Graph API

查看:64
本文介绍了使用Graph API同时从多个Facebook页面检索公共帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这将使用户从可口可乐页面检索最新的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's https://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页面检索公共帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆