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
880 stars 137 forks source link

checkpoint_required #68

Closed LudovicFauchet closed 4 years ago

LudovicFauchet commented 4 years ago

Hello,

I migrate to the new version 6.1.0, but i always have the same error :'(

Fatal error
: Uncaught Instagram\Exception\InstagramAuthException: Unknown error (Client error: `POST https://www.instagram.com/accounts/login/ajax/` resulted in a `400 Bad Request` response: {"message": "checkpoint_required", "checkpoint_url": "/challenge/2471176/HOBb2vrI7s/", "lock": false, "status": "fail"} ).

Does i've done a bad things ? i used your exemple in the readme.

Cheers

pgrimaud commented 4 years ago

Hello @LudovicFauchet

Can you try with a new Instagram Account? (a dummy one)

LudovicFauchet commented 4 years ago

@pgrimaud ,

Do you want to say a new empty account ? The account use to login method can be the same used to getProfile ?

Cheers

Many thanks for your reactivity

pgrimaud commented 4 years ago

Do you want to say a new empty account ?

Yes. I'm working for a workaround to bypass the checkpoint challenge.

The account use to login method can be the same used to getProfile ?

You just have to login one time. The session data will be set in cache and used each time to get a profile, medias or stories.

LudovicFauchet commented 4 years ago

With the new empty account it seems to work but now i can't access to the medias of my other profile with this account.

Fatal error
: Uncaught Error: Cannot access private property Instagram\Model\Profile::$medias
pgrimaud commented 4 years ago

Weird.

Could you paste your code?

LudovicFauchet commented 4 years ago

@pgrimaud

It's ok for me it's work, i badly used the getMedias Method.

Cheers

Thanks for your help