login($credentials->getLogin(), $credentials->getPassword()); // 1518284433 is robertdowneyjr's account id $followingFeed = $api->getMoreFollowings(1518284433, 'QVFCQXdxYnZvWTFTZHRsNGtSWW1VZEREczJ3T0pQblNDckE4TEZPb01JY2VNVHJLaFFydVpnOHlFQnpiNE9UOFdJajNjVWpERTZUYTdnMWhoOXlCVmgtRg=='); $followers = $api->getMoreFollowers(1518284433, 'QVFBaTBMSVpINlVMdEU1aTl5aEpWel9uTDJrcWFKa3lWSTFMMjIyWktqanNxNGxhTmY3V3NrRHVQWElGeUZCYk9jcFlrVTdySHdrUVRsazRCQjdBaV8zeg=='); printUsers($followingFeed->getUsers()); } catch (InstagramException $e) { print_r($e->getMessage()); } catch (CacheException $e) { print_r($e->getMessage()); } function printUsers(array $users) { /** @var User $user */ foreach ($users as $user) { echo $user->getUserName() . PHP_EOL; } }