Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachmatullah, Agro committed Nov 25, 2017
1 parent 5be4c30 commit 3172fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InstagramScraper/Instagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ public function getFollowing($accountId, $count = 20, $pageSize = 20, $delayed =
}

while (true) {
$response = Request::get(Endpoints::getFollowersJsonLink($accountId, $pageSize, $endCursor),
$response = Request::get(Endpoints::getFollowingJsonLink($accountId, $pageSize, $endCursor),
$this->generateHeaders($this->userSession));
if ($response->code !== 200) {
throw new InstagramException('Response code is ' . $response->code . '. Body: ' . static::getErrorBody($response->body) . ' Something went wrong. Please report issue.');
Expand Down

0 comments on commit 3172fa8

Please sign in to comment.