By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,649 Members | 2,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,649 IT Pros & Developers. It's quick & easy.

how to autofill and auto submit facebook login form

P: 7
hi to all
is it possible to auto fill and auto login the facebook login form?

i am developing a web application in which , user will in put his,say for facebook, login information in his home page and upon

clicking a button , facebook will open and entered information will get auto filled in the login form and form will be auto submitted

i tried javascript but, i have doubt , can the document object refer to the facebookpage??
reason to doubt:-
i wrote a script and document.URl in this case containing the name of the my web form , but not of the facebook
code is: this code is within javascript function..and is called upon clicking the button

Expand|Select|Wrap|Line Numbers
  2. location.href="";
  3. document.forms[login_form].elements["email"].value("gautam");
where login_from->name of the login form of the face book
email -> name of the email field
gautam-> value to be set to the email field

any sort of guidance will be appreciated
Sep 19 '10 #1
Share this Question
Share on Google+
8 Replies

Expert Mod 5K+
P: 9,731
Your JavaScript will not be able to access the facebook login page. There are security measures implemented into web browsers that prevent this type of coding so that malicious code in one page cannot be executed in another page.

That being said, if your web application is meant to allow people to log into facebook, look into using the facebook API to do so :)

Sep 20 '10 #2

P: 7
thx for replying

sir,is it only the case with facebook?? or every website which needs the login say gmail
Sep 20 '10 #3

Expert Mod 5K+
P: 9,731
I don't know, you'll have to research each application/website that your web application will be interfacing with.

Sep 20 '10 #4

P: 7
thx for valuable i got something really important with reference to API (yahoo)you can check link
i think it will be possible to auto fill yahoo login form
using this API, i am working on it, i will update you if i get it done
Sep 20 '10 #5

P: 43
Big companies that have public web api's often implement some kind of delegated authorization. This is where someone clicks on link to your page, they get redirected facebook's or whoever page to type in their credentials, and get redirected back to where they came from with some type of token that can be used to call whatever apis.

All yahoo sites support OAuth I believe, same with google. Microsoft has something called WLDA (windows live delegated auth).

Facebook javascript API has something you can use.
Sep 23 '10 #6

P: 7

thank you sir for replying..

i checked your link, and its very useful i will delve into its depth, but sir
i just come across a code which shows we can access gmail page or any page and can automatically fill and login , so in that case we need not to use the API's here is the link
it uses SHDocVw.dll
if this kind of code works?? is it possible
Sep 24 '10 #7

P: 270
There is an open source library which does similar thing


Clipperz is open source so you can see its source code,

best luck,
Sep 26 '10 #8

P: 7
hello nitin,

i tried your link and its very good i must say, as its doing exactly what i want, but its not working when i click a direct login for my gmail

browser says

Your browser's cookie functionality is turned off. Please turn it on.

even if cookies are enabled

what the issue ????????
Sep 26 '10 #9

Post your reply

Sign in to post your reply or Sign up for a free account.