login($credentials->getLogin(), $credentials->getPassword()); // user must be on live $username = 'pgrimaud'; $live = $api->getLive($username); print_r($live); } catch (InstagramException $e) { print_r($e->getMessage() . ' for ' . $username); } catch (CacheException $e) { print_r('CacheException ' . $e->getMessage()); }