【发布时间】:2013-12-17 20:17:49
【问题描述】:
我正在使用 Instagram API 来获取关注给定帐户的人数,如下所示。
$follow_info = file_get_contents('https://api.instagram.com/v1/users/477644454/followed-by?access_token=ACESS_TOKEN&count=-1');
$follow_info = @json_decode($follow_info, true);
这将返回一组 50 个结果。他们在数组中确实有一个next_url 键,但是在处理数以万计的关注者时,继续进入下一页关注者会变得很耗时。
我在 StackOverflow 上读到,将 count 参数设置为 -1 将返回整个集合。但是,好像没有……
【问题讨论】:
标签: api pagination instagram