- 1). Sign in to your Facebook account. Choose "Developers" from the bottom of any screen, then select "Core Concepts." Choose "Registration" from the list of "Social Plugins."
- 2). Drag your mouse across the code in the "Registration" box. Right-click and select "Copy," then log in to your Web hosting account. Navigate to the PHP file of the page where you want to insert the box, then click its name and choose "Edit." Right-click at the point in the file where you want the box to appear, then choose "Paste."
- 3). Return to Facebook and select "Apps" in the upper right-hand corner of the Facebook navigation bar. Select "Create New App." Input a title for your app, click the box indicating that you agree to Facebook's "Terms of Service," then click "Continue." Place a credit card on file with Facebook if you haven't already -- the site prompts you for it if it's required. Building an app on Facebook is free, but placing a credit card number on file confirms your identity, which is one of the requirements of building the app.
- 4). Drag your mouse over the "App ID" number that displays once you've created the app, then right-clck and select "Copy." Tab over to the open PHP file for the page where you want users to be able to log in.
- 5). Replace the sample "App ID" within the code for the registration box with your actual app ID. Simultaneously, replace the URL in the "redirect_uri" field with the URL to which you want Facebook to redirect users once they've finished registering. Save the file to place the registration box live on your site.
SHARE