nsmle / igramavel

An unofficial Instagram RESTful API Laravel. easy to fetch any feed and interact with Instagram (like, follow, etc.) with JWT implementation.
https://igramavel.fiki.tech/v1
MIT License
34 stars 6 forks source link

Tried to login but got Checkpoint Required #1

Closed arisawali2014 closed 2 years ago

arisawali2014 commented 2 years ago

When i try to login using my new instagram account. it says "Checkpoint required, please provide IMAP credentials to process authentication" how to solve this problem?

nsmle commented 2 years ago

I'm also still trying to solve this problem, this problem occurs on a remote server because instagram seems to detect the ip address and geo location of every incoming request.

When I tried it locally it worked fine. Maybe as an alternative I will add a method to login with Instagram cookies which can be retrieved by following the tutorial here.

Maybe the pgrimaud/instagram-user-feed discussion #87 can help, since most of these repo rely on the above libraries.

Or if you have ideas and solutions to solve this problem, PR will always be open. Check progress on branch fix/checkpoint and join to solve this problem together😊

arisawali2014 commented 2 years ago

i think the better way is to implement other method that can choose wether use Email or Number to send a security code. then manually enter the code. when i check the code i don't know how you make a new routing for the plugins XD

nsmle commented 2 years ago

Great idea, but I'm not sure about it and it looks like it would be the same.

I used laravel to build this and All api routes are defined in routes/api.php with api controller defined in app/Http/Controllers/Api/

arisawali2014 commented 2 years ago

how about the instagram endpoint there. i didn't see it at the routes/api.php

nsmle commented 2 years ago

Maybe you can take a look at the pgrimaud/instagram-user-feed library first to understand how I use it here.

I overridden and added some custom methods from pgrimaud/instagram-user-feed which you can find in the app/Repositories/InstagramRepository.php class and implemented them with JWT in the app/Services/InstagramService.php class which is used throughout the app/Http/Controllers/Api/ api controllers