instagram-php-scraper icon indicating copy to clipboard operation
instagram-php-scraper copied to clipboard

getMediasByLocationId seem not working

Open arpunpun opened this issue 2 years ago • 1 comments

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

arpunpun avatar Mar 23 '22 10:03 arpunpun

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.

kiprasbiel avatar May 07 '22 17:05 kiprasbiel