|
-
Oct 19th, 2009, 08:39 PM
#1
Thread Starter
New Member
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:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.WebBrowser1.Document.GetElementById("email").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("pass").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("Login").InvokeMember("click")
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Visible = True
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.ScriptErrorsSuppressed = True
End Sub
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|