Closed kagandev closed 3 years ago
We have the same issue. Nearly ever request end in a 302 Error
If you are trying to access public account, chances are your ip just got banned by Instagram, so it redirects you to /login page when you try to access profile page. Take a look at proxified version of this scaper to mitigate the issue. https://github.com/restyler/instagram-php-scraper
then how do we login on Instagram with server IP?? I tried to log in with this code
$instagram = \InstagramScraper\Instagram::withCredentials(new \GuzzleHttp\Client(), 'xxx', 'xxx', new Psr16Adapter('Files'));
$instagram->login();
but it gives an error because I need to verify it with server IP using opt or what so ever method... please guide us ... a lot of us are facing the same issue
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.
Same here ` Warning: Undefined property: stdClass::$authenticated in /home/xxx/public_html/wp-content/themes/Newspaper-child/includes/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php on line 2206
Fatal error: Uncaught InstagramScraper\Exception\InstagramAuthException: User credentials are wrong. in /home/xxx/public_html/wp-content/themes/Newspaper-child/includes/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php:2207 Stack trace: #0 /home/xxx/public_html/wp-content/themes/Newspaper-child/includes/get.php(13): InstagramScraper\Instagram->login() #1 {main} thrown in /home/xxx/public_html/wp-content/themes/Newspaper-child/includes/vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php on line 2207`
My code is:
It was working until 30 minutes ago. I can't understand why.