Skip to content

Commit 6c9a903

Browse files
authored
Updated json response structure from graphql to native_location_data (#1059)
Co-authored-by: Kipras <bielkakb@gmail.com>
1 parent ac731ff commit 6c9a903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/InstagramScraper/Instagram.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@ public function getLocationById($facebookLocationId)
16891689

16901690
$this->parseCookies($response->headers);
16911691
$jsonResponse = $this->decodeRawBodyToJson($response->raw_body);
1692-
return Location::create($jsonResponse['graphql']['location']);
1692+
return Location::create($jsonResponse['native_location_data']['location_info']);
16931693
}
16941694

16951695
/**

0 commit comments

Comments
 (0)