Thursday, February 26, 2015

How To Make Facebook Bot Auto Poster with Visual Basic .NET?


Maybe YOU want to make YOUR job with facebook become automatic. For example YOU want to explore many facebook groups and do a post automatically.

Do the above work by hand would be boring and saturate even YOU will be tired to do it. Therefore, YOU need a software that can do the job automatically.

Here we go!

Here it is the design of YOUR Facebook Bot Auto Poster



Now on the design form you have one button, one listbox, one webbrowser component and one timer component. OK that's enough.

On the first time YOUR software run you may browse URL "m.facebook.com"
I use mobil facebook couse it very light to navigate with browser component.

Here it is the code on form load

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        WebBrowser1.Navigate("m.facebook.com")

    End Sub


Facebook BOT auto poster software can keep track of all the groups that YOU want by opening one by one the links facebook group that has YOUR collect first.

Here it is code to collect groups link:

        Dim Page As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("a")
        ListBox1.Items.Clear()
        For Each Element As HtmlElement In Page
            If Element.GetAttribute("href").Contains("/groups") Then
                ListBox1.Items.Add(Element.GetAttribute("href").ToString())
            End If
        Next



After make a collection of Facebook groups link you browse every link by activated the timer.
Here it is the code on the timer.

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        x = x + 1
        If x > ListBox1.Items.Count Then
            Timer1.Stop()
        Else
            ListBox1.SelectedIndex = x - 1
            WebBrowser1.Navigate(ListBox1.Items(x - 1).ToString)
        End If
    End Sub


Before You click start button you may search the grup as usual you do on facebook with browser like Internet Explores, Firefox, Google Chore etc.

After search groups on the facebook your software may be like the picture below:



As you see on the picture above I type "visul basic" and then click the (cari/search) button in the internal browser and then click Grup.

Now I click the start button to do my job for automatic track all groups. See the picture below:


The picture below showing YOU how "Facebook Bot Auto Poster" do your work to track all facebook groups that you want automatically:





ok