Dealership Website Lead Forms That Automatically Load Using Customer Facebook Information
Create Auto-Populating Lead Forms That Use Customer Facebook Data
TThis is a step-by-step tutorial for allowing you to pre-fill a form on your website with user's Facebook data such as his email, name, address, etc.
In order to get the user's Facebook data, the user has to be logged in your website with his Facebook account.
You need your Facebook app credentials (App ID and App Secret). If you don't have a Facebook app registered or you don't know what that means, go tofacebook.com/developers (I assume you already have a Facebook account) and click on "Set Up New App" and follow the wizard.
Important: make sure you filled "Site URL" and "Site Domain" with your infos. You are given an App ID and an App Secret that we will be using in step 2.
Facebook API Call to Get Customer Profile Data
We are using the Facebook PHP SDK (see on github) to deal with authentication and make API calls.