Results 1 to 8 of 8

Thread: Help on Facebook Login in VB2008

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2009
    Posts
    4

    Help on Facebook Login in VB2008

    Hello guys, i am now to this forum and i hope i can learn much about vb here =].
    The problem i am stating today is that i want this program to log in to
    facebook (https://login.facebook.com/login.php?login_attempt=1)
    and after that, go to
    mousehunt (http://apps.facebook.com/mousehunt/)
    to retrieve information from my account.

    So far, i've managed to make the application to login to my facebook account but i cannot make it navigate to mousehunt but even if i do so, my account will not be logged in please help.

    My code is the following,
    vb.net Code:
    1. Public Class Form1
    2.  
    3.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    4.        
    5.       Me.WebBrowser1.Document.GetElementById("email").SetAttribute("value", TextBox1.Text)
    6.         WebBrowser1.Document.GetElementById("pass").SetAttribute("value", TextBox2.Text)
    7.         WebBrowser1.Document.GetElementById("Login").InvokeMember("click")
    8.  
    9.     End Sub
    10.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    11.         WebBrowser1.Visible = True
    12.  
    13.     End Sub
    14.   Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    15.         WebBrowser1.ScriptErrorsSuppressed = True
    16.     End Sub
    17.  
    18.   End Class
    Last edited by Hack; Oct 21st, 2009 at 08:24 AM. Reason: Added Highlight Tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width