400 Login Error
After parsing the json I get this error. It does manage to rewrite usernames into ids.
ERROR: got 400 when fetching stories entries! Response: {"message": "login_required", "logout_reason": 2, "status": "fail"}
I entered the correct username and password but no cookie, since its (probably?) not needed because I don't use 2FA.
This is the json I use.
{ "filesdir": "files", "dbfilename": "stories.sqlite3", "username": "xxxx", "password": "xxxx", "quiet": false, "ids": { "xxxx": "xxx", "xxxx": "xxx", "xxx": "xxx", "xxxx: "xxxx", "xx": "xxxx", }, "x-ig-capabilities": "36oD" }
Looked a bit more into x-ig-capabilities. Since the prefs.json got rewritten I think I don't need it anymore. Not using it doesn't help either.
Replicated the issue. Unable to fix.
Looks like IG changed the API for logging in over ajax. Will look into it.
Thanks @tensojka
This may be relevant: https://stackoverflow.com/questions/49788905/what-is-the-new-instagram-json-endpoint
is there still no fix yet ? I'm having this error as well.
@lordzuqi no, still no fix yet. They totally removed the ajax login API and I haven't yet figured out what they replaced it with.
Does the IG change impact both username/password and cookie authentication? I have been using cookie authentication for last several months without issue and suddenly last night I am no longer able to authenticate.
@aboutte IG just blocked any automation access that required login, now it's hopeless