instagram-user-feed
instagram-user-feed copied to clipboard
400 Bad Request error when trying to get profile by id
Version(s) affected: 6.16.1
Description
When trying to get a profile by id, I get the following error message:
Error: Client error: 'GET https://i.instagram.com/api/v1/users/web_profile_info/?username=robertdowneyjr' resulted in a '400 Bad Request' response: {"message":"useragent mismatch","status":"fail"}
How to reproduce
Try this example: https://github.com/pgrimaud/instagram-user-feed/blob/master/examples/profile-by-id.php