1. Creating a Facebook Application

i. Go to facebook developer page. Create a new app by clicking on the Apps Menu => Create New App.

ii. Enter your application name, Category. Click on Create App. Enter the captcha code and proceed.

After the app is created, you will now have app id and secret as shown here.