Important alert: (current site time 7/15/2013 8:22:02 AM EDT)
 

article

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
author picture
 
     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...   
  1. 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.
  2. 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.   
  3. You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
  4. 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
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
10/2/2011 9:17:26 AMvBTech.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 PMker

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.