Skip to content

Commit 15fc876

Browse files
berry-13shortpoet
authored andcommitted
📚 docs: Facebook update (danny-avila#1312)
* Update user_auth_system.md * Update user_auth_system.md * Update user_auth_system.md
1 parent a42b38a commit 15fc876

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

docs/install/user_auth_system.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ To enable Google login, you must create an application in the [Google Cloud Cons
5454
4. Click on "Save and continue" and then "Back to dashboard".
5555
5. Click on "Create Credentials" and then "OAuth client ID".
5656
6. Select "Web application" as the application type and give it a name.
57-
7. Add `http://yourdomain`, `http://localhost:3080` and `http://localhost:3090` to the authorized JavaScript origins.
58-
8. Add `http://your-domain/oauth/google/callback` to the authorized redirect URIs. (if you use localhost then use this `http://localhost:3080/oauth/google/callback`)
57+
7. Add `https://yourdomain`, `http://localhost:3080` and `http://localhost:3090` to the authorized JavaScript origins.
58+
8. Add `https://your-domain/oauth/google/callback` to the authorized redirect URIs. (if you use localhost then use this `http://localhost:3080/oauth/google/callback`)
5959
9. Click on "Create" and copy your client ID and client secret.
6060
10. Paste them into your `/.env` file.
6161
11. Enable the feature in the `/.env` file
@@ -65,18 +65,23 @@ To enable Google login, you must create an application in the [Google Cloud Cons
6565
## Facebook Authentication
6666
### (It only works with a domain, not with localhost)
6767

68-
1. Go to [Facebook Developer Portal](https://developers.facebook.com/)
69-
2. Create a new Application and give it a name
70-
4. In the Dashboard tab select product and select "Facebook login", then tap on "Configure" and "Settings". Male sure "OAuth client access", "Web OAuth access", "Apply HTTPS" and "Use limited mode for redirect URIs" are **enabled**
71-
5. In the Valid OAuth Redirect URIs add "your-domain/oauth/facebook/callback" (example: http://example.com/oauth/facebook/callback)
72-
6. Save changes and in the "settings" tab, reset the Client Secret
73-
7. Put the Client ID and Client Secret in the .env file:
68+
1. Go to the [Facebook Developer Portal](https://developers.facebook.com/).
69+
2. Create a new application and select "Authenticate and request data from users with Facebook Login."
70+
3. Choose "No, I'm not creating a game" and provide a name for your application.
71+
4. In the Dashboard tab, go to "Use cases" and click "Customize" under "Authentication and account creation." Add the email permission by clicking "add" under email's permission.
72+
5. In the settings section, click "go to settings." Ensure that "Client OAuth login," "Web OAuth login," and "Enforce HTTPS" are **enabled**.
73+
6. Add `your-domain/oauth/facebook/callback` to the Valid OAuth Redirect URIs (e.g., https://example.com/oauth/facebook/callback).
74+
7. Save changes. In the "App settings" tab, click "show" next to the App secret.
75+
8. Copy the Client ID and Client Secret and paste them into the .env file as follows: (`App ID=Client ID` & `App secret=Client Secret`)
76+
7477
```bash
7578
FACEBOOK_CLIENT_ID=your_client_id
7679
FACEBOOK_CLIENT_SECRET=your_client_secret
7780
FACEBOOK_CALLBACK_URL=/oauth/facebook/callback # this should be the same for everyone
7881
```
79-
8. Save the .env file
82+
9. Save the .env file.
83+
84+
Make sure to replace "your_client_id" and "your_client_secret" with the actual values from your Facebook Developer Portal
8085

8186
---
8287

0 commit comments

Comments
 (0)