-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$twoStepVerificator must be an instance of TwoStepVerificationInterface #810
Comments
Probably, Instagram has marked your account as suspicious, or you are logging in from a non-standard location. There are three solutions to this problem:
|
Ty rly |
Hi, try this example: $instagram = new \InstagramScraper\Instagram(new \GuzzleHttp\Client()); This works for me. |
This works for me too |
And for me too |
2nd one worked the best for me. Using custom cookies is the best option because by using the first option, Instagram always sent mail for reminding new login which just occurs. It will be marked suspicious sooner or later if you do not use cookies. Thanks |
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. |
Fatal error: Uncaught InstagramScraper\Exception\InstagramAuthException: $twoStepVerificator must be an instance of TwoStepVerificationInterface. in /home/web/.../vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php:1751 Stack trace: #0 /home/web/.../vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php(1650): InstagramScraper\Instagram->verifyTwoStep(Object(InstagramScraper\Http\Response), Array, NULL) #1 /home/web/.../tests/index.php(10): InstagramScraper\Instagram->login() #2 {main} thrown in /home/web/.../vendor/raiym/instagram-php-scraper/src/InstagramScraper/Instagram.php on line 1751
this in paginateAccountMediaByUsername.php
The text was updated successfully, but these errors were encountered: