Getting this error while calling this function getAccountById()
PHP Fatal error: Uncaught InstagramScraper\Exception\InstagramException: Respons
e does not JSON
const ACCOUNT_JSON_PRIVATE_INFO_BY_ID = 'https://i.instagram.com/api/v1/users/{userId}/info/';
Does not work any more.
I doubt there is any other way
Same thing here.. Is there any other way to fetch account information by using an Id ?
+1
WorkAround to get username, if the user has a media
$id = TARGET_USER;
$media_id = $instagram->getMediasByUserId($id)[0]->getId();
$username = $instagram->getMediaById( $media_id )->getOwner()->getUsername();
+1
+1
Getting this error while calling this function getAccountById()
PHP Fatal error: Uncaught InstagramScraper\Exception\InstagramException: Respons
e does not JSON
+1
can any one post working example ? or any link
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
WorkAround to get username, if the user has a media