Skip to content

Commit e4d4a22

Browse files
Update README.md for Facebook login
1 parent f7cd0f7 commit e4d4a22

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Django poll app is a full featured polling app. You have to register in this app
3131

3232
<h2> Configuring OAuth login </h2>
3333
<details>
34-
<summary>Obtaining OAuth Client ID for Google</summary>
34+
<summary>Obtaining OAuth Client ID for Google</summary>
35+
3536

3637
1. **Go to the Google Cloud Console:**
3738
- Navigate to [Google Cloud Console](https://console.cloud.google.com/).
@@ -72,7 +73,29 @@ Django poll app is a full featured polling app. You have to register in this app
7273
For detailed instructions, refer to Google's documentation on [OAuth 2.0](https://developers.google.com/identity/protocols/oauth2).
7374
</details>
7475
76+
<details>
77+
<summary>Obtaining OAuth Client ID for Facebook</summary>
78+
79+
1. **Create a Facebook App:**
80+
- Go to the [Facebook Developers](https://developers.facebook.com/) website and log in.
81+
- Click on "My Apps" and then "Create App".
82+
- Enter the required information for your app (display name, contact email, etc.) and create the app.
83+
84+
2. **Configure Basic Settings:**
85+
- In your app dashboard, go to Settings > Basic.
86+
- Add a platform (select Website) and enter your site URL(http://127.0.0.1:8000/complete/facebook/).
87+
- Save your changes.
88+
89+
3. **Get App ID and App Secret:**
90+
91+
- Update the following settings to your settings file, replacing `'your-facebook-client-id'` and `'your-facebook-client-secret'` with your actual LinkedIn app credentials:
92+
```python
93+
SOCIAL_AUTH_FACEBOOK_OAUTH2_KEY = 'your-client-id'
94+
SOCIAL_AUTH_FACEBOOK_OAUTH2_SECRET = 'your-client-secret'
95+
```
96+
7597
98+
</details>
7699
<details>
77100
<summary>Obtaining OAuth Client ID for LinkedIn</summary>
78101

0 commit comments

Comments
 (0)