ramtinak / InstagramApiSharp

A complete Private Instagram API for .NET (C#, VB.NET).
MIT License
792 stars 239 forks source link

cant create account #86

Closed burakcetin closed 5 years ago

burakcetin commented 5 years ago

58 i've seen this issue. i downloaded v1.1.2.3 but it didnt create any account.

i didnt use proxy because i get new ip after when i start.

var username = "xxx";
var password = "xxx";
var userSession = new UserSessionData
{
       UserName = username ,
       Password = password
};
InstaApi = InstaApiBuilder.CreateBuilder().SetUser(userSession).Build();

var createdUser =  await InstaApi.CreateNewAccountAsync(username, password, "email@email.com");

error message :

{"Succeeded":true,"Value":{"status":"ok","account_created":false,"created_user":null},"Info":{"Exception":null,"Message":"No errors detected","ResponseType":5,"Timeout":false,"NeedsChallenge":false}}

ramtinak commented 5 years ago

Always use latest version for any purpose! Try v1.1.5.0

burakcetin commented 5 years ago

also i used with proxy. there was no change. i'm still banned from instagram after 10 seconds when i created new account.

I have tried with the latest version. after i looked at other issues

ramtinak commented 5 years ago

it's OK for me! you must use latest version, because old version has an issue with device id, and Instagram will ban it after you created an account!!!

Note: you must save your session after you created an account, in this way instagram won't suspicious to you.

11/16/2018 1:48:36 PM:  ----------------------------------------------------------------------------------------------------
11/16/2018 1:48:36 PM:  Request: POST https://i.instagram.com/api/v1/accounts/create/
11/16/2018 1:48:36 PM:  Headers:
11/16/2018 1:48:36 PM:  Accept-Language:["en-US"]
11/16/2018 1:48:36 PM:  X-IG-Capabilities:["3brTPw=="]
11/16/2018 1:48:36 PM:  X-IG-Connection-Type:["WIFI"]
11/16/2018 1:48:36 PM:  User-Agent:["Instagram","44.0.0.9.93","Android","(15/4.0.3; 640dpi; 1440x2560; Sony; SO-02G; SO-02G; SO-02G; en_US; 107092322)"]
11/16/2018 1:48:36 PM:  X-IG-App-ID:["567067343352427"]
11/16/2018 1:48:36 PM:  Content:
11/16/2018 1:48:36 PM:  signed_body=d011916e2bf6e039109d1c3be8a1dd9c0aef976c030b9f3b2cc8eb5aa01c146e.{"allow_contacts_sync":"true","sn_result":"API_ERROR:+null","phone_id":"b37806b0-357a-4532-96cb-b58bf35209de","_csrftoken":"0kozjrYJlQmKeyBu7t2jionZnnUAFiWZ","username":"XXXX","first_name":"","adid":"c237eed9-18cf-4bca-b1fb-a80fb14f9228","guid":"8d33aedc-5c05-4a12-bd22-aa02bc65b58d","device_id":"android-afa4ac4117488992","email":"XXXX@email.com","sn_nonce":"","force_sign_up_code":"","waterfall_id":"6aa9292e-4d3f-4256-8023-30122e11eac2","qs_stamp":"","password":"XXXX"}&ig_sig_key_version=4
11/16/2018 1:48:39 PM:  Response: POST https://i.instagram.com/api/v1/accounts/create/ [OK]
11/16/2018 1:48:39 PM:  Content:
11/16/2018 1:48:39 PM:  {"account_created": true, "created_user": {"has_placed_orders": false, "can_boost_post": false, "profile_pic_url": "https://scontent-lhr3-1.cdninstagram.com/vp/c012aa3473e225c235b274cb8a51c620/5C716EDF/t51.2885-19/38905493_2193354514245732_6791661364604567552_n.jpg", "show_insights_terms": false, "can_see_organic_insights": false, "is_verified": false, "has_anonymous_profile_picture": true, "full_name": "", "pk": 9210067814, "reel_auto_archive": "unset", "hd_profile_pic_url_info": {"height": 150, "url": "https://scontent-lhr3-1.cdninstagram.com/vp/c012aa3473e225c235b274cb8a51c620/5C716EDF/t51.2885-19/38905493_2193354514245732_6791661364604567552_n.jpg", "width": 150}, "allowed_commenter_type": "any", "nux_private_first_page": false, "username": "ramtinjokarnj", "nux_private_enabled": false, "is_private": false, "hd_profile_pic_versions": [{"height": 320, "url": "https://scontent-lhr3-1.cdninstagram.com/vp/c012aa3473e225c235b274cb8a51c620/5C716EDF/t51.2885-19/38905493_2193354514245732_6791661364604567552_n.jpg", "width": 320}, {"height": 640, "url": "https://scontent-lhr3-1.cdninstagram.com/vp/c012aa3473e225c235b274cb8a51c620/5C716EDF/t51.2885-19/38905493_2193354514245732_6791661364604567552_n.jpg", "width": 640}], "allow_contacts_sync": true}, "multiple_users_on_device": false, "status": "ok"}
11/16/2018 1:49:16 PM:  ----------------------------------------------------------------------------------------------------
burakcetin commented 5 years ago

did you use proxy? Can you login the account you created? Because I'm doing it, but I'm being banned instantly.

and please share me full codes (with build instaapi) that register new account.

ramtinak commented 5 years ago

Nope,

var userSession = new UserSessionData
{
    UserName = txtUser.Text,
    Password = txtPass.Text
};

InstaApi = InstaApiBuilder.CreateBuilder()
    .SetUser(userSession)
    .UseLogger(new DebugLogger(LogLevel.All))
    .SetRequestDelay(RequestDelay.FromSeconds(0, 1))
    .Build();
Text = $"{AppName} Connecting";

var createdUser = await InstaApi.CreateNewAccountAsync(txtUser.Text, txtPass.Text, txtUser.Text+ "@email.com");
if (createdUser.Succeeded)
    if (createdUser.Value.AccountCreated)
        SaveSession();