[Tutorial] Facebook Login

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
16 posts Page 1 of 2
User avatar
PayneStudios
Dedicated Member
Dedicated Member
Posts: 66
Joined: Thu Sep 15, 2011 2:05 pm

[Tutorial] Facebook Login
PayneStudios
Hey Guys,
i just made a really Easy Example for Facebook Login within Visual Basic.

What we need:
2x Textboxes
1x Button
1x Webbrowser Control

On Form_Load Event set this Code:
Code: Select all
WebBrowser1.Navigate("http://www.facebook.com/")
Button1.Enabled = False
Webbrowser_DocumentCompletet Event set this Code:
Code: Select all
Dim text As String = WebBrowser1.DocumentText
If text.Contains("login_form") Then
   Button1.Enabled = True
Else
   Button1.Enabled = False
   MsgBox("Could not find Login Form!", MsgBoxStyle.Information, "Error")
End If
Button_Click Event:
Code: Select all
WebBrowser1.Document.GetElementById("email").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("pass").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("loginbutton").InvokeMember("click")
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: [Tutorial] Facebook Login
Shim
this is little bit easy . but try to make a cns app
Find my programs on Softpedia
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Re: [Tutorial] Facebook Login
comathi
It might be easy, but I'm sure many people did not know that (count me in :lol: )

I'm guessing this can be applied to pretty much every website which uses forms as login methods. Nice tut :)
User avatar
Shim
VIP - Donator
VIP - Donator
Posts: 882
Joined: Wed Dec 14, 2011 5:02 am

Re: [Tutorial] Facebook Login
Shim
you are correct comathi . if you developed this code you can make a portable cns app . is it ?
Find my programs on Softpedia
User avatar
CoolCoder
VIP - Donator
VIP - Donator
Posts: 21
Joined: Sat Mar 24, 2012 8:23 pm

Re: [Tutorial] Facebook Login
CoolCoder
aah i can make a cns os with this!
From,

The RadioShack & GeekSquad Worker

Image
Image
Image
User avatar
PayneStudios
Dedicated Member
Dedicated Member
Posts: 66
Joined: Thu Sep 15, 2011 2:05 pm

Re: [Tutorial] Facebook Login
PayneStudios
A portable CnS App should be no problem to do.
Yes its pretty simple, but for beginners its good to use.
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: [Tutorial] Facebook Login
MrAksel
There are already some apps to login and view info from your account on this site.
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
DreadNought
VIP - Donator
VIP - Donator
Posts: 116
Joined: Fri Jan 08, 2010 12:37 pm

Re: [Tutorial] Facebook Login
DreadNought
CoolCoder wrote:
aah i can make a cns os with this!
A CodeNStuff OS?

I'm sorry but I really do doubt you are capable of creating an entire OS, you realise to make one of these the core will need to be done in native C++? And not be ran from something you double click on windows?

Unless you mean something else of course, then forget I posted.
Bound and boom tech,
The Future Of Coding
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Re: [Tutorial] Facebook Login
muttley1968
paralyzer wrote:
CoolCoder wrote:
aah i can make a cns os with this!
A CodeNStuff OS?

I'm sorry but I really do doubt you are capable of creating an entire OS, you realise to make one of these the core will need to be done in native C++? And not be ran from something you double click on windows?

Unless you mean something else of course, then forget I posted.
Well he could i been looking into it for one i am making at the min you can build it in what ever language you are happyest with and then there is this really complex way to shut down most windows fetures including the OS and still load the nesassery files to boot your Program soo as long as you had your program compleatly stand alone no need for anything else to suport its run such as diologs it could be done trouble is that this cant be done from code you have to do it in regestry editor ext
User avatar
benji_19994
VIP - Donator
VIP - Donator
Posts: 156
Joined: Mon Apr 16, 2012 3:13 pm

Re: [Tutorial] Facebook Login
benji_19994
Hey peoples i like this tutorial but i would like to know how to how make the facebook login password and user name open in a diff window-form And also so it can remember my details thanks if any one could help cooll; if you can help!
16 posts Page 1 of 2
Return to “Tutorials”