简体   繁体   English

在Instagram API中使用经度和纬度获取超过20张图像

[英]Using latitude and longitude in Instagram API for get more than 20 images

I am writing PHP code to get Instagram images on behalf of latitude and longitude in API. 我正在编写PHP代码以代表API中的经度和纬度获取Instagram图像。 But all time I am getting only 20 images. 但一直以来,我只得到20张图像。 Can any body help me to sort out this issue? 有谁可以帮我解决这个问题?

Here is the 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']);

Here is answer: https://stackoverflow.com/a/21593420/423089 这是答案: https : //stackoverflow.com/a/21593420/423089

  • get the created_time of the last photo in api response. 获取API响应中最后一张照片的created_time

  • use the value as max_timestamp= in url param and make API call, this will give u next 20 images. 在url参数中使用max_timestamp=值并进行API调用,这将为您提供下20张图片。

Here is working example: http://gramfeed.com/instagram/map 这是工作示例: http : //gramfeed.com/instagram/map

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

相关问题 如何在Instagram中使用Locaton API获取20张以上的图像 - How to get more then 20 images using locaton api in Instagram 使用php、API自动获取经纬度 - Get latitude and longitude automatically using php, API PHP如何使用Google API获取完整的经度和纬度 - PHP How to get the full longitude and the latitude using google API 如何使用google map api在php中获取当前的纬度和经度? - How to get current latitude and longitude in php using google map api? 如何使用Google API和表格获取任何城市的纬度和经度? - How to get Latitude and Longitude of any City using Google API and a form? 在google API中根据经纬度计算地址(一个请求中计算多个地址) - Calculate address from latitude and longitude in google API (More than one address calculation in one request) 如何通过位置ID或经纬度获取instagram媒体? - How to get instagram media by location id or latitude and longitude? 如何使用Instagram API获取图像 - How to get images using Instagram API 如何使用Google API在附近的地点获取20多个结果 - How to get more than 20 results for nearby places using google api 如何获得超过20个结果即。 60使用google place API与PHP? - How to get more than 20 results ie. 60 using google place API with PHP?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM