If you don't already have a Facebook App ID and App Secret for your site, create an application with the Facebook Developer application. Note: Even if you have created an application and received an App Secret, you should review steps 4 through 7 and make sure your application settings are appropriate.<br />
1. Go to https://developers.facebook.com/apps and click in + Create New App to create a new application.<br />
2. Enter a name for your application in the App Display Name field.<br />
3. Agree to the Facebook Platform Policies, then click Continue.<br />
4. Enter the Security Check words, then click Submit.<br />
5. On the Settings tab > Basic, take note of the App ID and App Secret, you'll need this shortly.<br />
6. Still on the Settings tab, click on Website and set Site URL to the top-level directory of the site which will be implementing Facebook Connect (this is usually your domain, e.g. http://www.example.com , but could also be a subdirectory). If your site is going to implement Facebook Connect across a number of subdomains of your site (for example, http://foo.example.com and bar.example.com), you need to enter a App Domain (which would be example.com in this case).<br />
7. You can include a logo that appears on the Facebook Connect dialog. On the Settings tab > Basic, click Edit on the image next your App Name and browse to choose an image file. Your logo must be in JPG, GIF, or PNG format. If the image is larger than 75x75 pixels, it will be resized and converted, then click Save Changes.<br />
8. Copy the App ID and App Secret and paste it on Setting > Sign In Options of your directory.