Skip to content

Commit 447bce5

Browse files
authored
Facebook OAuth steps update (aws-amplify#4731)
* Fixed type for Auth.federatedSignIn() in lib/auth/js/social * Fix facebook oauth setup steps
1 parent f62adda commit 447bce5

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed
30.2 KB
Loading

src/fragments/lib-v1/auth/common/social_signin_web_ui/configure_auth_category.mdx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,27 @@ You need to now inform your auth provider of this URL:
1010
![Image](/images/cognitoHostedUI/facebook1.png)
1111
3. On the left navigation bar, choose *Settings* and then *Basic*.
1212
![Image](/images/cognitoHostedUI/facebook3.png)
13-
4. Choose *+ Add Platform* from the bottom of the page and then choose *Website*.
14-
![Image](/images/cognitoHostedUI/facebook4.png)
15-
5. Under Website, type your user pool domain with the /oauth2/idpresponse endpoint into *Site URL*
13+
4. Choose *+ Add Platform* from the bottom of the page, then choose the relevant platform and fill in the fields.
1614

17-
`https://<your-user-pool-domain>/oauth2/idpresponse`
15+
![Image](/images/cognitoHostedUI/facebook9.png)
16+
> Note: For Website, the Site URL should be the location of your [web based production application](https://developers.facebook.com/docs/development/create-an-app/app-dashboard/platform-settings/#website). Facebook will perform a check on this URL and a failure may result in your Facebook app becoming disabled.
1817
19-
![Image](/images/cognitoHostedUI/facebook5.png)
20-
6. Save changes.
21-
7. Type your user pool domain into *App Domains*:
18+
5. Save changes.
19+
6. Type your user pool domain into *App Domains*:
2220

2321
`https://<your-user-pool-domain>`
2422

2523
![Image](/images/cognitoHostedUI/facebook6.png)
26-
8. Save changes.
27-
9. From the navigation bar choose *Products* and then *Set up* from *Facebook Login*.
24+
6. Save changes.
25+
8. From the navigation bar choose *Add Product* and then *Set up* from *Facebook Login*.
2826
![Image](/images/cognitoHostedUI/facebook7.png)
29-
10. From the navigation bar choose *Facebook Login* and then *Settings*.
30-
11. Type your redirect URL into *Valid OAuth Redirect URIs*. It will consist of your user pool domain with the /oauth2/idpresponse endpoint.
27+
9. From the navigation bar choose *Facebook Login* and then *Settings*.
28+
10. Type your redirect URL into *Valid OAuth Redirect URIs*. It will consist of your user pool domain with the /oauth2/idpresponse endpoint.
3129

3230
`https://<your-user-pool-domain>/oauth2/idpresponse`
3331

3432
![Image](/images/cognitoHostedUI/facebook8.png)
35-
12. Save changes.
33+
11. Save changes.
3634

3735
</Block>
3836
<Block name="Google Sign-In">

src/fragments/lib/auth/common/social_signin_web_ui/configure_auth_category.mdx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,27 @@ You need to now inform your auth provider of this URL:
1010
![Image](/images/cognitoHostedUI/facebook1.png)
1111
3. On the left navigation bar, choose *Settings* and then *Basic*.
1212
![Image](/images/cognitoHostedUI/facebook3.png)
13-
4. Choose *+ Add Platform* from the bottom of the page and then choose *Website*.
14-
![Image](/images/cognitoHostedUI/facebook4.png)
15-
5. Under Website, type your user pool domain with the /oauth2/idpresponse endpoint into *Site URL*
13+
4. Choose *+ Add Platform* from the bottom of the page, then choose the relevant platform and fill in the fields.
1614

17-
`https://<your-user-pool-domain>/oauth2/idpresponse`
15+
![Image](/images/cognitoHostedUI/facebook9.png)
16+
> Note: For Website, the Site URL should be the location of your [web based production application](https://developers.facebook.com/docs/development/create-an-app/app-dashboard/platform-settings/#website). Facebook will perform a check on this URL and a failure may result in your Facebook app becoming disabled.
1817
19-
![Image](/images/cognitoHostedUI/facebook5.png)
20-
6. Save changes.
21-
7. Type your user pool domain into *App Domains*:
18+
5. Save changes.
19+
6. Type your user pool domain into *App Domains*:
2220

2321
`https://<your-user-pool-domain>`
2422

2523
![Image](/images/cognitoHostedUI/facebook6.png)
26-
8. Save changes.
27-
9. From the navigation bar choose *Add Product* and then *Set up* from *Facebook Login*.
24+
6. Save changes.
25+
8. From the navigation bar choose *Add Product* and then *Set up* from *Facebook Login*.
2826
![Image](/images/cognitoHostedUI/facebook7.png)
29-
10. From the navigation bar choose *Facebook Login* and then *Settings*.
30-
11. Type your redirect URL into *Valid OAuth Redirect URIs*. It will consist of your user pool domain with the /oauth2/idpresponse endpoint.
27+
9. From the navigation bar choose *Facebook Login* and then *Settings*.
28+
10. Type your redirect URL into *Valid OAuth Redirect URIs*. It will consist of your user pool domain with the /oauth2/idpresponse endpoint.
3129

3230
`https://<your-user-pool-domain>/oauth2/idpresponse`
3331

3432
![Image](/images/cognitoHostedUI/facebook8.png)
35-
12. Save changes.
33+
11. Save changes.
3634

3735
</Block>
3836
<Block name="Google Sign-In">

0 commit comments

Comments
 (0)