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

Login with username and password Error #348

Open deepahir opened 1 year ago

deepahir commented 1 year ago

Version(s) affected: 6.16.4

Description
I use this package but when I use login with username and password., when I try to login that time my Instagram account get notification of We Detected An Unusual Login Attempt , I also approve but then I get timeout error.

Screenshot_4

if I do this thing 4 to 5 times Instagram block my account and notify to change new password.

$credentials = include_once realpath(dirname(__FILE__)) . '/credentials.php'; $cachePool = new FilesystemAdapter('Instagram', 0, __DIR__ . '/../cache'); $api = new Api($cachePool); $imapClient = new ImapClient($credentials->getImapServer(), $credentials->getImapLogin(), $credentials ->getImapPassword()); $api->login($credentials->getLogin(), $credentials->getPassword(),$imapClient); $profile = $api->getProfile($instagram_user);

Can anyone know about this bug,please help me. Thanks

esedArk commented 1 year ago

Hey I have the same problem.

Unknown error, please report it with a GitHub issue. Client error: POST https://www.instagram.com/accounts/login/ajax/ resulted in a 403 Forbidden response: {"message":"Sorry, your password was incorrect. Please double-check your password.","status":"fail"}

But my password is not incorrect...

deepvision7 commented 1 year ago

Same here. Changed to a new proxy and it was working fine using cookies login almost for a month until started failing with this error:

400 Bad Request response: {"message":"checkpoint_required","checkpoint_url":"https://i.instagram.com/challenge/?next=/api/v1/users/web_profile_inf (truncated...)

And after that this error:

Error: Unknown error, please report it with a GitHub issue. Client error: POST https://www.instagram.com/accounts/login/ajax/ resulted in a 403 Forbidden response: {"message":"Sorry, your password was incorrect. Please double-check your password.","status":"fail"}