php - didn't get full quantity of picture with same hashtag -
i need show photos instagram company hash tag website. i'm using 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 $results array display results... foreach($results['data'] $item){ $image_link = $item['images']['low_resolution']['url']; echo '<img src="'.$image_link.'" />'; } ?>
*i'm replace "my client id" true client id
after result of show 13 photos it, right should have 373 photos. may check http://web.stagram.com/tag/hermomy/ . total 373 photos hash tag - #hermomy result page - 103.6.244.109/~hermo/ayeetest.php so,how can show photos?
someone else may better able answer doesn't seem possible looking @ api.
the reason seeing 13 url using recent media. see tag endpoint.
Comments
Post a Comment