예제 #1
0
        private void AddFollower(string[] namesArray, InstagramAccount account)
        {
            var instagram = new InstagramControl();

            instagram.RunInstagram();
            instagram.Login(account.AccountName, account.InstagramPass, firstUse);
            Thread.Sleep(1000);
            foreach (var name in namesArray)
            {
                instagram.UserNavigate(name);
                Thread.Sleep(1000);
                instagram.FollowTap();
                Thread.Sleep(500);
            }
            instagram.Logout();
            //BrowserControl browser = new BrowserControl();
            //browser.LoginInstagram(account.AccountName, account.InstagramPass);
            //browser.OpenPage(name);
            //Thread.Sleep(2000);
            //browser.FollowTap();
            //Thread.Sleep(1000);
            //browser.ExitAccount();
        }