␡
- Facebook Integration Options
- Creating a Facebook Application
- Initiating the Environment
- Creating the Login Button
- Using the Facebook Information
- Using the Facebook User ID
- Summary
Like this article? We recommend
Creating a Facebook Application
Creating a Facebook Application
Before you can start the integration programming on your website, you have to create a stub Facebook application that will give you the integration parameters required by Facebook Connect.
- After logging into your Facebook account (you need one if you want to develop Facebook Connect applications), open the Developer application and select the Setup New Application option to create the new application. Enter the application's name and agree to the Facebook terms.
- Verify the application name (and change it, if necessary), enter a short description, and upload an icon and a logo that will be shown to Facebook users. The most important bit of information in the Basic screen is the API Key, which you'll use in your JavaScript code. Your server scripts might also need the Secret value in order to validate the digital signature generated by Facebook.
- After finalizing the basic form, click the Connect tab to open the form shown in Figure 2, where you can enter the specific information for Facebook Connect.
- Enter the remaining required data in the Basic and Connect tabs, copy the API key for later use in your code, and save your data. Now you're ready to start developing the JavaScript application.
The next page displays the application editing form shown in Figure 1.
The most important field in this form is Connect URL, which you must set to the directory in which your Facebook Connect application resides. If your application uses more than one directory, you have to enter the one containing the page that communicates with Facebook.