Facebook#
Creating a Facebook application#
Before you configure your XenForo installation, follow the steps below to create a custom application for your site. A Facebook account is required to create an application.
- Browse to https://developers.facebook.com/ and be sure that you're logged into your Facebook account. Note that you must be logged in as a person, not a page.
- Click the My Apps button at the top and then click on the Add a New App link.
- Provide a name and email and then click Create App ID.
- Next you should see a page called Add Product; if you do not, click the Plus Icon on the left next to the Products Heading. Under Facebook Login, click Setup.
- You will then need to choose the platform. Click Web and enter the URL to your site. Click *Next through all of the steps.
- In the sidebar on the left, click Settings under Facebook Login.
- In Valid OAuth redirect URIs, enter
<XF board URL>/connected_account.php
. For example,https://xenforo.com/community/connected_account.php
. The beginning of this URL must match your Board URL setting in XenForo exactly. The Board URL Requires HTTPS. Once entered, click Save Changes at the bottom. - In the sidebar on the left, click Settings followed by Basic. For the Privacy Policy URL and the Terms of Service URL enter the links to those pages on your site.
- In the sidebar on the left, click App Review. If the app is listed as in development, click the toggle next to it to make it live/public.
- Go back to the sidebar on the left and click Settings followed by Basic near the top. Make a note of the App ID and App Secret. These values will need to be entered into the XenForo control panel.
Configuring Facebook connected account#
To finalize the Facebook connected account, you must enter the data obtained above into the relevant section of the XenForo control panel.
- Log in to the Admin Control Panel.
- Go to Setup > Connected accounts.
- Click on Facebook in the list. Enter the App ID and App secret obtained earlier into the respective fields and save.
- Test the connected account