I have a form designed which takes input values. I want people to click the button “sign up as facebook” which takes in their facebook details and as a result fills my custom form with the appropriate values. i want it to be like this one. https://www.odesk.com/signup/create-account/id/Contractor_50dbed1edc1416.20352143
Please tell me how can this be achieved?
Registration Plugin is what you are looking for. 🙂
UPDATED
In Case you want to have custom form. You would have to take permission from user and get his details. You can use following Code :
You call login() at the press of your button.