I am writing PHP code to get Instagram images on behalf of latitude and longitude in API. But all time I am getting only 20 images. 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
get the created_time
of the last photo in api response.
use the value as max_timestamp=
in url param and make API call, this will give u next 20 images.
Here is working example: http://gramfeed.com/instagram/map