简体   繁体   English

如何在Instagram中使用Locaton API获取20张以上的图像

[英]How to get more then 20 images using locaton api in Instagram

i am writing Php code to get Instagram images on behalf of location api . 我正在编写PHP代码以代表location api获取Instagram图片。 But all time i am getting only 20 images . 但是我一直都只得到20张图像。 Can any body help me to shortout this issue .please see code . 任何机构都可以帮助我解决此问题。请参阅代码。

    $client = new Zend_Http_Client('https://api.instagram.com/v1/media/search');
    $client->setParameterGet('client_id', $CLIENT_ID);
    $client->setParameterGet('lat', $_POST['lat']);
    $client->setParameterGet('lng', $_POST['long']);
   $client->setParameterGet('distance', $_POST['distance']);

By passing the undocumented count parameter you can get more results. 通过传递未记录的 count参数,您可以获得更多结果。

This API endpoint does not provide pagination but using the count parameter you can receive up to 100 medias. 该API端点不提供分页功能,但是使用count参数最多可以接收100个媒体。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM