{"action":"opened","issue":{"url":"https://api.github.com/repos/postaddictme/instagram-php-scraper/issues/344","repository_url":"https://api.github.com/repos/postaddictme/instagram-php-scraper","labels_url":"https://api.github.com/repos/postaddictme/instagram-php-scraper/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/postaddictme/instagram-php-scraper/issues/344/comments","events_url":"https://api.github.com/repos/postaddictme/instagram-php-scraper/issues/344/events","html_url":"https://github.com/postaddictme/instagram-php-scraper/issues/344","id":314092216,"number":344,"title":"Some trouble with paginate media","user":{"login":"bomboem","id":23366362,"avatar_url":"https://avatars0.githubusercontent.com/u/23366362?v=4","gravatar_id":"","url":"https://api.github.com/users/bomboem","html_url":"https://github.com/bomboem","followers_url":"https://api.github.com/users/bomboem/followers","following_url":"https://api.github.com/users/bomboem/following{/other_user}","gists_url":"https://api.github.com/users/bomboem/gists{/gist_id}","starred_url":"https://api.github.com/users/bomboem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bomboem/subscriptions","organizations_url":"https://api.github.com/users/bomboem/orgs","repos_url":"https://api.github.com/users/bomboem/repos","events_url":"https://api.github.com/users/bomboem/events{/privacy}","received_events_url":"https://api.github.com/users/bomboem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-13T12:41:51Z","updated_at":"2018-04-13T12:41:51Z","closed_at":null,"author_association":"NONE","body":"As proposed by @gthedev, i've open a new issue. I don't know what i'm doing wrong, so i'll put my code here and someone please point out what i'm doing wrong here.\r\nCode:\r\n\r\n````\r\n<?php\r\nrequire __DIR__ . '/vendor/autoload.php';\r\n//Removed my credentials, use your own\r\n$instagram = \\InstagramScraper\\Instagram::withCredentials('username', 'password');\r\n$instagram->login();\r\n//Using the instagram page as an example\r\n$result = $instagram->getPaginateMedias('instagram');\r\n$medias = $result['medias'];\r\nif ($result['hasNextPage'] === true) {\r\n    $result = $instagram->getPaginateMedias('instagram', $result['maxId']);\r\n    $medias = array_merge($medias, $result['medias']);\r\n}\r\nforeach ($medias as $value) {\r\n$imgurl = $value->getImageHighResolutionUrl();\r\nprint_r(\"<img src='\".$imgurl.\"'/>\");\r\n}\r\n?>\r\n````\r\n\r\nThis only returns 18 posts or so, while the page has over 90 posts. What am I doing wrong here?"}}
{"actor":{"display_login":"bomboem"}}