mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 17:45:56 +08:00
title, permalink, layout, plugin
| title | permalink | layout | plugin | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| talk-plugin-facebook-auth | /plugin/talk-plugin-facebook-auth/ | plugin |
|
Enables sign-in via Facebook via the server side passport middleware. Requires creating and registering a login app with FaceBook.
Configuration:
TALK_FACEBOOK_APP_ID(required) - The Facebook App ID for your Facebook Login enabled app. This is only required while thetalk-plugin-facebook-authplugin is enabled.TALK_FACEBOOK_APP_SECRET(required) - The Facebook App Secret for your Facebook Login enabled app. This is only required while thetalk-plugin-facebook-authplugin is enabled.
You can learn more about getting a Facebook App ID at the Facebook Developers Portal or by visiting their Creating an App ID guide.
Setting up your FaceBook app:
- Go to My Apps > Create A New App
- Add an App Name and Email to create an app id
- Confirm that you are not a robot
- Go to Settings > Basic:
- add app domains (your Talk domain)
- add a link to your privacy policy
- add a link to your terms of service
- save changes
- Go to Settings > Advanced:
- turn on "Require App Secret"
- Under "Products" click + to add a Product:
- Select "Let people log in with FaceBook"
- choose
www - enter your Talk domain url
- click Next several times to get through the add code steps (You do not need to modify any code, the plugin takes care of this part for you.)
- Go back to Settings > Basic:
- enter the callback url (Use your Talk domain with this endpoint:
/api/v1/auth/facebook/callback) - Locate your App Id and App Secret, set these as config vars on your instance of Talk
- enter the callback url (Use your Talk domain with this endpoint:
- Toggle the "Live" button to make app live
NOTE: Facebook auth requires your site to use https (SSL) not http. If your site is not https you can not use this plugin!
GDPR Compliance
In order to facilitate compliance with the EU General Data Protection Regulation (GDPR), you should review our GDPR Compliance guidelines.