I need show the photos from instagram with my company hash tag to my website. I'm using the code of below:
<?php
function callInstagram($url)
{
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => 2
));
$result = curl_exec($ch);
curl_close($ch);
return $result;
}
$tag = 'hermomy';
$client_id = 'my client id';
$url = 'https://api.instagram.com/v1/tags/'.$tag.'/media/recent?client_id='.$client_id;
$inst_stream = callInstagram($url);
$results = json_decode($inst_stream, true);
//Now parse through the $results array to display your results...
foreach($results['data'] as $item){
$image_link = $item['images']['low_resolution']['url'];
echo '<img src="'.$image_link.'" />';
}
?>
*I'm already replace the "my client id" to my true client id
After it i get the result of only show 13 photos from it, by right it should have 373 photos. You may check http://web.stagram.com/tag/hermomy/ . total is about 373 photos with this hash tag - #hermomy My result page - 103.6.244.109/~hermo/ayeetest.php So,how can i show all those photos?