Davincible / goinsta

Unofficial Instagram API written in Golang (v2022)
MIT License
181 stars 54 forks source link

Login Failed #77

Open justewg opened 1 month ago

justewg commented 1 month ago

Hello. Can anyone help me? I've run default code structure with 2FA,

insta := goinsta.New("correct_login", "correct_password")
err := insta.Login()
if err.Error() == goinsta.Err2FARequired.Error() {
    code := "correct_2fa_backup_code"
    err2FA := insta.TwoFactorInfo.Login2FA(code)
    if err2FA != nil {
        fmt.Print(err2FA)
    }
} else if err != nil {
    fmt.Print(err)
}

and receive an error "Request Status Code 400: fail, Invalid Parameters" What an I doing wrong?