从Facebook Graph API获取25张照片 [英] Getting more than 25 photos from the Facebook Graph API
本文介绍了从Facebook Graph API获取25张照片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Graph API检索用户标记的所有照片,但我只能获取最新的25。
I'm trying to retrieve all the photos a user is tagged in using the Graph API but I can only get the latest 25.
是否可以获取更多,如果是,如何?
Is it possible to get more, and if so, how?
推荐答案
您是否尝试添加限制和偏移参数?引用文档:
Have you tried adding a limit and offset parameters? Quoting the documentation:
寻呼
查询连接,有几个有用的参数可以让您过滤和浏览连接数据:
When querying connections, there are several useful parameters that enable you to filter and page through connection data:
- limit,offset: https://graph.facebook.com/me/likes?limit=3
- 直到(由unix时间戳或strtotime接受的任何日期): https://graph.facebook.com/search?until=yesterday&q=orange
- limit, offset: https://graph.facebook.com/me/likes?limit=3
- until, since (a unix timestamp or any date accepted by strtotime): https://graph.facebook.com/search?until=yesterday&q=orange
这篇关于从Facebook Graph API获取25张照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文