InstagramApiSharp
InstagramApiSharp copied to clipboard
I get feedback_required if I want to register a new account
public async Task CreateAccount()
{
var username = "***";
var password = "***";
var email = "***";
var firstName = "***";
var userSession = new UserSessionData
{
UserName = username,
Password = password
};
var delay = RequestDelay.FromSeconds(2, 4);
var instagramApi = InstaApiBuilder.CreateBuilder()
.SetUser(userSession)
//.UseLogger(new DebugLogger(LogLevel.All))
.SetRequestDelay(delay)
// session handler, set a file path to save/load your state/session data
.SetSessionHandler(new FileSessionHandler { FilePath = username + ".state" })
.Build();
// Set api version to v180 [ PLEASE READ THE WARNING SECTION IN THIS PAGE! ]
instagramApi.SetApiVersion(InstaApiVersionType.Version180);
// no need to do this but I just wanted to show you
instagramApi.RegistrationService.Birthday = instagramApi.RegistrationService.GenerateRandomBirthday();
email = email.ToLower();
username = username.ToLower();
await instagramApi.RegistrationService.FirstLauncherSyncAsync();
await instagramApi.RegistrationService.FirstQeSyncAsync();
var checkEmailResult = await instagramApi.RegistrationService.CheckEmailAsync(email);
// if email address is available to create
if (checkEmailResult.Succeeded && (checkEmailResult.Value?.Available ?? false))
{
await Task.Delay(TimeSpan.FromSeconds(1.5));
var signupConsent = await instagramApi.RegistrationService.GetSignupConsentConfigAsync();
await Task.Delay(TimeSpan.FromSeconds(1.5));
var mailSendResult = await instagramApi.RegistrationService.SendRegistrationVerifyEmailAsync(email);
// check registration code that instagram sent it to your email:
var verificationCode = "790361";
await Task.Delay(TimeSpan.FromSeconds(3.5));
var checkRegistrationConfirmationResult = await instagramApi.RegistrationService
.CheckRegistrationConfirmationCodeAsync(email, verificationCode);
if (checkRegistrationConfirmationResult.Succeeded)
{
await instagramApi.RegistrationService.GetSiFetchHeadersAsync();
await Task.Delay(TimeSpan.FromSeconds(1.5));
await instagramApi.RegistrationService.GetUsernameSuggestionsAsync(firstName, email);
await Task.Delay(TimeSpan.FromSeconds(1.5));
if (signupConsent.Value?.AgeRequired ?? false)
await instagramApi.RegistrationService.CheckAgeEligibilityAsync();
await Task.Delay(TimeSpan.FromSeconds(2.5));
await instagramApi.RegistrationService.GetOnboardingStepsAsync(InstaOnboardingProgressState.Prefetch);
await instagramApi.RegistrationService.NewUserFlowBeginsConsentAsync();
await instagramApi.RegistrationService.NewUserFlowBeginsConsentAsync();
await Task.Delay(TimeSpan.FromSeconds(2.5));
var checkUsernameResult = await instagramApi.RegistrationService.CheckUsernameAsync(username);
if (checkUsernameResult.Succeeded && (checkUsernameResult.Value?.Available ?? false))
{
var signupCode = checkRegistrationConfirmationResult.Value.SignupCode;
var createAccount =
await instagramApi.RegistrationService.CreateNewAccountWithEmailAsync(email, username, password, firstName, signupCode);
// HERE - createAccount returns { Info: "feedback_required" }
if (!createAccount.Succeeded)
{
Console.WriteLine(createAccount.Info.Message);
return;
}
await instagramApi.RegistrationService.GetMultipleAccountsFamilyAsync();
await instagramApi.RegistrationService.GetZrTokenResultAsync();
await instagramApi.RegistrationService.LauncherSyncAsync();
await instagramApi.RegistrationService.QeSyncAsync();
await instagramApi.RegistrationService.NuxNewAccountSeenAsync();
await instagramApi.RegistrationService.GetOnboardingStepsAsync(InstaOnboardingProgressState.Start);
await instagramApi.RegistrationService.GetContactPointPrefillAsync();
await instagramApi.RegistrationService.GetOnboardingStepsAsync(InstaOnboardingProgressState.Finish);
// now we can save our session to local:
instagramApi.SessionHandler?.Save();
}

I think you have tried to many times to register yourself either with the same Mail-Address or with the same IP-Address in a too short amount of time.
Instagram is very picky with claiming Requests as Spam for these types of actions.
Did you fixed it yet? Cause i've got exact same problem.