instagrapi icon indicating copy to clipboard operation
instagrapi copied to clipboard

Instagram Basic Display API compatibility

Open federicoromeo opened this issue 2 years ago • 2 comments

I am developing an app using Instagram Basic Display API to authorize the user, which uses an autentication token to log in the user. So i want to authenticate the user with the official Display API (with the token) and exploit instagrapi to get the saved collections, but afaik it uses the id of the session to autenticate the user.

Could there be an instagrapi endpoint to login the user with the token instead of the sessionId giving the explicit username and password? Or maybe retrieve the sessionId from official API?

image

federicoromeo avatar Mar 15 '22 10:03 federicoromeo

If i take the sessionId from the cookie of the above screen (using the Instagram Basic Display API) and i use it to login in instagrapi with python it works. But if i do the same with instagrapi rest (in a flutter app) it says session not found, and my login is blocked. How can this happen?

federicoromeo avatar Mar 16 '22 15:03 federicoromeo

+1 here I would also be interested about a compatibility between the two

Also getting a session not found if I use the sessionId from the browser with instagrapi-rest

willgzn avatar Aug 19 '22 14:08 willgzn