InstagramApiSharp
InstagramApiSharp copied to clipboard
Challenge IInstaApi always empty after login
Important note
- You must fill this form! If you don't fill it, your issue will be close immediately.
- Put an X character between
[ ]that is related to your issue, like[x] - Please remove
Important notefrom this form! - Don't remove other sections (unless it's unnecessarily, like
Debug logsandScreenshotssections)!
I've:
- [x] {Searched} in Issues
- [x] {Checked} Example projects
- [ ] {Read} wiki pages
- [ ] Not sure
Issue category
- [ ] Bug
- [ ] Feature Request
- [x] Missing Feature
- [x] Question
- [ ] Not sure
Language
- [ ] 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
- [x] Windows
- [ ] Windows Server
- [ ] Linux
- [ ] Mac OS
- [ ] Other
Debug logs
If your issue has an debug log, post it here, unless remove this section!
Describe your issue
After send code while Challenge
public static IInstaApi _instaApi;
is empty but user is logged in
if (logInResult.Value == InstaLoginResult.ChallengeRequired)
{
var challenge = await _instaApi.GetChallengeRequireVerifyMethodAsync();
if (challenge.Succeeded)
{
if (challenge.Value.StepData != null)
{
//var submitPhone = await _instaApi.SubmitPhoneNumberForChallengeRequireAsync("phone"); dont need
var phoneNumber = await _instaApi.RequestVerifyCodeToSMSForChallengeRequireAsync();
var a = phoneNumber.Value.UserId;
var verifyLogin = await _instaApi.VerifyCodeForChallengeRequireAsync("413975");
if (verifyLogin.Succeeded)
{
if (_instaApi.UserProcessor == null) //null everytime
return true;
}
}
How get all data to _instaApi?
Screenshots
If you have screenshots, you can post it here. unless remove this section!
You can Edit the Source code that output ChallengeInfo and TwoFactorInfo in StateData and Edit Import and Export Code about this.