|
A Facebook Login with Webbrowser
|
Email
|
| Submitted on: |
9/27/2011 5:40:04 PM |
| By: |
vBTech.net
|
| Level: |
Beginner |
| User Rating: |
Unrated |
| Compatibility: |
VB.NET |
| Views: |
7485 |
|
|
|
|
|
This allows you to manipulate the Facebook website to login using the web browser.
What's unique about this snippet is the new Facebook method regenerates a new ID for the login button every time you visit the website. this will grab the generated ID and use it.
|
| |
Terms of Agreement:
By using this article, you agree to the following terms...
- You may use
this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
- You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
- You may link to this article from another website, but ONLY if it is not wrapped in a frame.
- You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
|
'################################################################
'What you need is:
' 2 Textbox's Name one Username & the other Password
' The Login Button
' And finally your Webbrowser.
'#######################
Form_Load Code:
'#######################
Webbrowser1.Navigate("http://facebook.com")
'#######################
Login Button Code:
'#######################
dim fb_button as string
for each element as htmlelement in webbrowser1.document.all
if instr(element.id, "_3") then
fb_button = element.id
end if
Next
Webbrowser1.document.getelementbyid("email").setattribute("value", Username.text)
Webbrowser1.document.getelementbyid("pass").setattribute("value", Password.text)
'Place a pause if you want here before clicking the login button.
Webbrowser1.document.getelementbyid(fb_button).invokemember("click")
'#######################
|
|
Report Bad Submission
|
Your Vote
|
| |
Other User Comments
|
10/2/2011 9:17:26 AM: vBTech.net
I have a video on this now - and tutorials of much more http://www.youtube.com/results?search_query=vBTechNet&aq=f (If this comment was disrespectful, please report it.)
|
11/15/2011 6:05:36 PM: ker
merci (If this comment was disrespectful, please report it.)
|
Add Your Feedback
Your feedback will be posted below and an email sent to
the author. Please remember that the author was kind enough to
share this with you, so any criticisms must be stated politely, or they
will be deleted. (For feedback not related to this particular article, please
click here instead.)
To post feedback, first please login.
|