问题
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
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
Can anyone help?
Thanks, Sami
回答1:
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.
This is covered briefly on the main Graph API documentation under the heading 'selection'
来源:https://stackoverflow.com/questions/9845352/retrieving-public-posts-from-multiple-facebook-pages-at-the-same-time-using-the