instagram-php-scraper
instagram-php-scraper copied to clipboard
getMediasByLocationId seem not working
Code
$medias = $instagram->getMediasByLocationId('105938891315826', 10);
Response
null
I found 'InstagramScraper/Instagram.php' LINE 174 $arr['graphql'] is empty
Printout https://imgur.com/a/7QSQtCh
Same issue with Instagram::getLocationById
.
Seems that Endpoints::getMediasJsonByLocationIdLink
method now return json with new structure in which instead of graphql, native_location_data is populated with data.
Managed to fix getLocationById, by simply passing new structure (pull request #1059) , but getMediasByLocationId has a lot more changes that I'm not familiar with.