mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
update fb app creation steps
This commit is contained in:
@@ -11,23 +11,43 @@ plugin:
|
||||
- Client
|
||||
---
|
||||
|
||||
Enables sign-in via Facebook via the server side passport middleware.
|
||||
Enables sign-in via Facebook via the server side passport middleware. Requires creating and registering a login app with FaceBook.
|
||||
|
||||
Configuration:
|
||||
**Configuration:**
|
||||
|
||||
- `TALK_FACEBOOK_APP_ID` (**required**) - The Facebook App ID for your Facebook
|
||||
Login enabled app. You can learn more about getting a Facebook App ID at the
|
||||
[Facebook Developers Portal](https://developers.facebook.com) or by visiting
|
||||
the [Creating an App ID](https://developers.facebook.com/docs/apps/register)
|
||||
guide. This is only required while the `talk-plugin-facebook-auth` plugin is
|
||||
Login enabled app. This is only required while the `talk-plugin-facebook-auth` plugin is
|
||||
enabled.
|
||||
- `TALK_FACEBOOK_APP_SECRET` (**required**) - The Facebook App Secret for your
|
||||
Facebook Login enabled app. You can learn more about getting a Facebook App
|
||||
Secret at the [Facebook Developers Portal](https://developers.facebook.com)
|
||||
or by visiting the
|
||||
[Creating an App ID](https://developers.facebook.com/docs/apps/register)
|
||||
guide. This is only required while the `talk-plugin-facebook-auth` plugin is
|
||||
Facebook Login enabled app. This is only required while the `talk-plugin-facebook-auth` plugin is
|
||||
enabled.
|
||||
|
||||
You can learn more about getting a Facebook App ID at the
|
||||
[Facebook Developers Portal](https://developers.facebook.com) or by visiting
|
||||
their [Creating an App ID](https://developers.facebook.com/docs/apps/register)
|
||||
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
|
||||
* Locate your App Id and App Secret, set these as config vars on your instance of Talk
|
||||
* 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!_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user