Ejemplo n.º 1
0
        private void postThreadStart()
        {
            CFacebook    fb = new CFacebook();
            CFormControl fc = new CFormControl();

            fc.FormText("Starting");


            DataGridView dataGridView = UC_Account.Instance.facebookAccount;

            for (int i = 0; i < dataGridView.Rows.Count; i++)
            {
                if (Convert.ToBoolean(dataGridView.Rows[i].Cells[0].Value))
                {
                    navigator = fb.googleChrome();
                    fb.facebookLogin(navigator, dataGridView.Rows[i].Cells[1].Value.ToString(), dataGridView.Rows[i].Cells[3].Value.ToString());

                    fb.gotoUrl(navigator, PoatUrl.Text);
                    fc.FormText("Posting");
                    fb.groupPost(navigator, writePost.Text);

                    fc.FormText("");
                    navigator.Quit();
                }
                Stop();
            }
        }
Ejemplo n.º 2
0
        public void likePostThreadStart()
        {
            CFacebook    fb = new CFacebook();
            CFormControl fc = new CFormControl();


            DataGridView dataGridView = UC_Account.Instance.facebookAccount;

            for (int i = 0; i < dataGridView.Rows.Count; i++)
            {
                if (Convert.ToBoolean(dataGridView.Rows[i].Cells[0].Value))
                {
                    navigator = fb.googleChrome();
                    fb.facebookLogin(navigator, dataGridView.Rows[i].Cells[1].Value.ToString(), dataGridView.Rows[i].Cells[3].Value.ToString());
                    fb.gotoUrl(navigator, LikePostUrl.Text);
                    // fb.gotoUrl(navigator, "https://www.facebook.com/igordro/posts/10210930281467745?comment_id=10210930691077985&comment_tracking=%7Btn%3AR1%7D");

                    fc.FormText("Liking post");
                    fb.likeComments(navigator, Convert.ToBoolean(bunifuSwitch_Comments.Value));
                    fc.FormText("");
                    navigator.Quit();
                }
            }
            Stop();
        }
Ejemplo n.º 3
0
        private void likePageThreadStart()
        {
            CFacebook    fb           = new CFacebook();
            CFormControl fc           = new CFormControl();
            DataGridView dataGridView = UC_Account.Instance.facebookAccount;

            for (int i = 0; i < dataGridView.Rows.Count; i++)
            {
                if (Convert.ToBoolean(dataGridView.Rows[i].Cells[0].Value))
                {
                    navigator = fb.googleChrome();
                    fb.facebookLogin(navigator, dataGridView.Rows[i].Cells[1].Value.ToString(), dataGridView.Rows[i].Cells[3].Value.ToString());
                    fc.FormText("Go to Page");
                    fb.gotoUrl(navigator, LikePageUrl.Text);
                    fc.FormText("Liking Page");
                    fb.likePage(navigator);
                    fc.FormText("");
                    navigator.Quit();
                }
            }
            Stop();
        }