pgrimaud / instagram-user-feed

This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
MIT License
873 stars 136 forks source link

Error with Checkpoint challenge #170

Closed A-0-0-P closed 3 years ago

A-0-0-P commented 3 years ago

Version(s) affected: 6.6.4

Description
I can't log into Instagram without the 'Checkpoint challenge bypass'.

So I tried to implement this example: checkpoint-challenge.php But I just get this error. Is it something on my side, or some change that Instagram made and breaks the code? Thanks for any input !

Fatal error: Uncaught TypeError: Argument 4 passed to Instagram\Auth\Checkpoint\Challenge::__construct() must be of the type int, null given, called in /Users/Me/Sites/localhost/_instagram_feed4/vendor/pgrimaud/instagram-user-feed/src/Instagram/Auth/Login.php on line 134 and defined in /Users/Me/Sites/localhost/_instagram_feed4/vendor/pgrimaud/instagram-user-feed/src/Instagram/Auth/Checkpoint/Challenge.php:45 Stack trace: #0 /Users/Me/Sites/localhost/_instagram_feed4/vendor/pgrimaud/instagram-user-feed/src/Instagram/Auth/Login.php(134): Instagram\Auth\Checkpoint\Challenge->__construct(Object(GuzzleHttp\Client), Object(GuzzleHttp\Cookie\CookieJar), '/challenge/1015...', NULL) #1 /Users/Me/Sites/localhost/_instagram_feed4/vendor/pgrimaud/instagram-user-feed/src/Instagram/Auth/Login.php(101): Instagram\Auth\Login->checkpointChallenge(Object(GuzzleHttp\Cookie\CookieJar), Object(stdClass)) #2 /Users/Me/Sites/localhost/_instagram_feed4/vendor/pgrimaud/instagram-user-feed/src/Instagram/Api.php(108): Instagram\Auth\Login->process in /Users/Me/Sites/localhost/_instagram_feed4/vendor/pgrimaud/instagram-user-feed/src/Instagram/Auth/Checkpoint/Challenge.php on line 45

AntonioCS commented 3 years ago

It's probably some issue with the account. I had this issue when I deployed my script on aws and Instagram flagged the account because it was being used from the US instead of from the UK.

recoverjp commented 3 years ago

It's probably some issue with the account. I had this issue when I deployed my script on aws and Instagram flagged the account because it was being used from the US instead of from the UK.

And did you find a solution for that?

AntonioCS commented 3 years ago

@recoverjp the account holder has to login and follow instagram instructions to rectify the account

recoverjp commented 3 years ago

I did not understand. The best solution would be to create an account in the USA if I am going to use AWS?

recoverjp commented 3 years ago

image The problem is here, as $ this->challengeDelay is being sent as null. And even if we have an integer value, then there is an error in the sendSecurityCode function because there is no such key 0 and these values. image Anyway, I haven't figured out how to solve it.

stale[bot] commented 3 years ago

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.