how to autofill and auto submit facebook login form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gamazone
    New Member
    • Sep 2010
    • 7

    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

    Code:
    location.href="https://www.facebook.com";
    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
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    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

    Comment

    • gamazone
      New Member
      • Sep 2010
      • 7

      #3
      thx for replying

      sir,is it only the case with facebook?? or every website which needs the login say gmail

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        I don't know, you'll have to research each application/website that your web application will be interfacing with.

        -Frinny

        Comment

        • gamazone
          New Member
          • Sep 2010
          • 7

          #5
          thx for valuable guidance....as i got something really important with reference to API (yahoo)you can check link
          Measure, monetize, advertise and improve your apps with Yahoo tools. Join the 200,000 developers using Yahoo tools to build their app businesses.

          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

          Comment

          • ZiadElmalki
            New Member
            • Sep 2010
            • 43

            #6
            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.

            Comment

            • gamazone
              New Member
              • Sep 2010
              • 7

              #7
              @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


              it uses SHDocVw.dll
              if this kind of code works?? is it possible

              Comment

              • NitinSawant
                Contributor
                • Oct 2007
                • 271

                #8
                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

                Comment

                • gamazone
                  New Member
                  • Sep 2010
                  • 7

                  #9
                  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 ????????

                  Comment

                  Working...