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 http://www.facebook.com/developers/apps and click in "+ Create New App" to create a new application.<br />
2. Enter a name for your application in the App Name field and select the Locale.<br />
3. Accept the Facebook Terms, then click Continue.<br />
4. Enter the Security Check words, then click Submit.<br />
5. On the About tab > Basic Info, you can type your application description, in the App Images you can include a logo that appears on the Facebook Connect dialog. Click Change your logo 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 />
6. On the Web tab, take note of the Application ID and Application Secret, you'll need this shortly.<br />
7. Still on the Web tab, 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 Site Domain (which would be example.com in this case). Specifying a Site Domain allows you to make calls using the PHP and JavaScript client libraries as well as get and store session information for any subdomain of the Site Domain.<br />
8. Click Save Changes.<br />
9. Then copy the App ID and App Secret and paste it on "Setting > Sign In Options" of your directory.