InstagramApiSharp icon indicating copy to clipboard operation
InstagramApiSharp copied to clipboard

Challenge is required is not being "accepted or propagated through"

Open CarlosTorrecillas opened this issue 2 years ago • 3 comments

I've:

Issue category

  • [ ] Bug
  • [ ] Feature Request
  • [ ] Missing Feature
  • [X] Question
  • [ ] Not sure

Language

  • [X] C#
  • [ ] VB.NET

Usage

  • [ ] Windows Form/Console app
  • [ ] WPF app
  • [ ] Asp .NET MVC
  • [X] Asp .NET Core
  • [ ] Universal Windows Platform [UWP]
  • [ ] Xamarin or Xamarin Forms
  • [ ] Mono
  • [ ] Other

Operating System

  • [ ] Windows
  • [ ] Windows Server
  • [X] Linux
  • [ ] Mac OS
  • [ ] Other

Describe your issue

Sometimes I'm trying to log in with different accounts on Instagram via the API. At the first time I get the Challenge is required ( in this case there is no two factor) so that accepting "it was me" should be enough. In some cases, at the second attempt it just works straightaway however in some others I get it prompted all the time and no matter how many times I accept the challenge in my phone or in the website I get it prompted again. My question is where there is anything the API offers to ensure that has been already accepted.

CarlosTorrecillas avatar Sep 08 '21 09:09 CarlosTorrecillas

Do you save the session after a succesful login, and reuse the same session afterwards ? Executing a login each time you use the API might prove troublesome

lixnet avatar Sep 09 '21 16:09 lixnet

I do save the sessión as a string and I always reuse it. In fact, I only perform "login" through the configuration it self. Once I have configured the account correctly another endpoint only reuses the session and there is no more interaction with that login part. What puzzles me is that sometimes it keeps failing for some accounts (no two factor authentication or any special magic, just standard accounts) and for some others simply works.

CarlosTorrecillas avatar Sep 09 '21 16:09 CarlosTorrecillas

I didn't save the first session and I can't log in anymore. Even if I confirm by email and through the App that it was me.

Unable to login: Challenge is required

What should I do?

image

marciusbezerra avatar Jan 12 '22 23:01 marciusbezerra