473,395 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to autofill and auto submit facebook login form

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
  1.  
  2. location.href="https://www.facebook.com";
  3. document.forms[login_form].elements["email"].value("gautam");
  4.  
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
8 9044
Frinavale
9,735 Expert Mod 8TB
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 :)

-Frinny
Sep 20 '10 #2
thx for replying

sir,is it only the case with facebook?? or every website which needs the login say gmail
Sep 20 '10 #3
Frinavale
9,735 Expert Mod 8TB
I don't know, you'll have to research each application/website that your web application will be interfacing with.

-Frinny
Sep 20 '10 #4
thx for valuable guidance....as i got something really important with reference to API (yahoo)you can check link
http://developer.yahoo.com/yui/dom/
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
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.
http://developers.facebook.com/docs/...cript/FB.login
Sep 23 '10 #6
@ZiadElmalki

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

http://scyanide.com/2009/07/use-c-sh...out-web-forms/
it uses SHDocVw.dll
if this kind of code works?? is it possible
Sep 24 '10 #7
NitinSawant
270 100+
There is an open source library which does similar thing

Check http://www.clipperz.com/

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


best luck,
Nitin
Sep 26 '10 #8
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

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

Similar topics

4
by: Scott Castillo | last post by:
Does anybody know how to auto-submit a form in PHP without Javascript? For instance, submit form variables to self, validate the data in PHP on same page, then, if no errors, auto-submit the data...
9
by: scott | last post by:
I have a combo in LISTING 2 that I'm trying to force a sumbit when a user makes a change. Can anyone see why it doesn't fire LISTING 2 code? It just doesn't do anything. What I'm really trying to...
8
by: Prometheus Research | last post by:
http://newyork.craigslist.org/eng/34043771.html We need a JavaScript component which will auto-submit a form after a set period has elapsed. The component must display a counter that dynamically...
7
by: Grant Merwitz | last post by:
Hi I am trying to get the enter key to submit my login form The login form is currently in a control on the page and uses an asp:imagebutton as it's login button. If a user presses enter...
4
by: dschruth | last post by:
Hello. Can anybody solve this problem? I am using a server-side language (PERL) to *try* to POST data to a HTTPS login script that doesn't have a standard "submit" button. The form appears...
5
by: Navillus | last post by:
Hey gang, I have a login form that is empty by default, but can be filled with values from a previous form: <input type=text maxlength="40" size="40" name="user" value="`usr`"> <input...
5
by: olaamussah | last post by:
Hi, i just started learning perl which i would use for my uni. project unfortunately. Well, this is a simple user login page i tried to create but i cant get it to work. Can someone please check this...
1
Jacotheron
by: Jacotheron | last post by:
Hi all I have a problem. I need to create a script that takes user input from a form (Username, Password, Domain) and with these input go to the page that contains their website statistics. I...
8
by: Harris Kosmidhs | last post by:
Hello, while I'm developing sites for some time I never coded a login form with security in mind. I was wondering what guidelines there are. For my point of view I'm thinking of using md5...
1
by: naharol | last post by:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="java.sql.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.