Skip to content

Commit

Permalink
Fix #20 Get Media Likes
Browse files Browse the repository at this point in the history
Modified the likes max id.
  • Loading branch information
eversionsystems authored Nov 18, 2017
1 parent 6060bf9 commit 5c813db
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 @@ -441,7 +441,7 @@ public function getMediaLikesByCode($code, $count = 10, $maxId = null)
if (sizeof($nodes) == 0) {
return $likes;
}
$maxId = $nodes[sizeof($nodes) - 1]['node']['id'];
$maxId = $jsonResponse['data']['shortcode_media']['edge_liked_by']['page_info']['end_cursor'];
}

return $likes;
Expand Down

0 comments on commit 5c813db

Please sign in to comment.