Skip to content

Facebook Integration

w8tcha edited this page Aug 24, 2013 · 5 revisions

To Enable Facebook Single Sign On Integration in YAF.NET (2.00 or higher is required)...

  • You need to Enable "Enable Single Sign On" in the Host Settings of your Forum.
  • And you need an Facebook Application for your website.

Register your Website on Facebook.com

Everything you need to know can be found on the Facebook Developer Portal (Of Course you need an Facebook Account)

  1. Go to https://developers.facebook.com/apps
  2. Click on "Create New App"
  3. Enter the "App Display Name" (For Example: Your Website Name) and Press "Continue"
  4. After you app is created modify the Basic Settings add the App Domain Your Website URL (for example mydomain.com)
  5. In the Section "Select how your app integrates with Facebook" select "Log in to my website using Facebook" and enter your Forum URL in the Field "Site URL"
  6. On that Page you also find the app id and app secret which are needed for YAF.NET.
  7. The App ID/App Secret needs to be entered in the app.config in your Forum

<add key="YAF.FacebookAPIKey" value="XXXX" />

<add key="YAF.FacebookSecretKey" value="XXXX" />

When Everything is setup correctly a "Login with Facebook" Button should occur on the login page.

Login for Users

  • Users are able to Register/Login with Facebook
  • Users can connect an existing Forum account with Facebook

Clone this wiki locally