Davincible / goinsta

Unofficial Instagram API written in Golang (v2022)
MIT License
183 stars 56 forks source link

Unfollow user: Request Status Code 400: fail, feedback_required (by using specific ids) #58

Open wbdb opened 1 year ago

wbdb commented 1 year ago

Unfollow user: Request Status Code 400: fail, feedback_required

profile, err := insta.VisitProfile("username")
if err := profile.User.Unfollow(); err != nil {
    //is true
}

Edit: I found out that the error only occurs when I use this. But unfortunately have not yet understood why.

insta.SetDevice(
    goinsta.Device{
        Manufacturer:     "Google",
        Model:            "Pixel 7 Pro",
        CodeName:         "Pixel 7 Pro",
        AndroidVersion:   32,
        AndroidRelease:   13,
        ScreenDpi:        "512dpi",
        ScreenResolution: "1440x3120",
        Chipset:          "Google Tensor G2",
    },
)
//Problematic part starts here - without, it works fine
insta.SetDeviceID("android-2938gklsa9434")
insta.SetUUID("82de2bdf-f157-4691-9a61-e317128d6c5f")
insta.SetPhoneID("ecf867b5-381b-4a9d-bdbb-fe8c9fd8d578")
insta.SetFamilyID("9c24f8c4-29f8-5e16-9485-468d6603f9f9")
insta.SetAdID("6c34b93c-4322-5dff-c7cc-429a9f532g6c")