1. Go to Developers section of Facebook.
2. Click on Apps and then log in when prompted.
3. Click on Create New App and a pop-up box will appear. Add your App Name and hit Continue button.
4. Fill out all the required fields and enter App Domains and Site URL and click on Save Changes button.
5. Facebook generates your API Key and Secret. Copy and paste them to your site