Test instagram


//2 - Include the php class
include('instagram.php');
//3 - Instanciate
if(!empty($username) && !empty($access_token)){
$isg = new instagramPhp($username,$access_token); //instanciates the class with the parameters
$shots = $isg->getUserMedia(array('count'=>$count)); //Get the shots from instagram
} else {
echo'Please update your settings to provide a valid username and access token';
}
//4 - Display
if(!empty($shots)){ echo $isg->simpleDisplay($shots); }