From ce9a1dcfc7c6638e51becb3529867dfe68e2f5e1 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 16 May 2024 09:15:04 +0200 Subject: [PATCH] fix: Update docs to include authentication with Facebook Limited Login (#948) --- _includes/parse-server/third-party-auth.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/_includes/parse-server/third-party-auth.md b/_includes/parse-server/third-party-auth.md index 73415d5c..a7cffb67 100644 --- a/_includes/parse-server/third-party-auth.md +++ b/_includes/parse-server/third-party-auth.md @@ -60,6 +60,17 @@ Note, most of them don't require a server configuration so you can use them dire } ``` +With Facebook's iOS SDK 17, you are required to implement Facebook Limited Login. If the user does not allow tracking through Apple's App Tracking Transparency, then the Facebook returns a JWT token instead of an access token. Therefore, in your app you would need to check if tracking is allowed or not and pass the relevant tokens. If your app does not receive an access token, then you will need to pass the below instead. *Available on Parse Server >= 6.5.6 < 7 and >=7.0.1.* + +```jsonc +{ + "facebook": { + "id": "user's Facebook id number as a string", + "token": "a JWT token from Facebook SDK limited login", + } +} +``` + The options passed to Parse Server: ```js { @@ -71,6 +82,8 @@ The options passed to Parse Server: } ``` +``` + Learn more about [Facebook login](https://developers.facebook.com/docs/authentication/). ### Twitter `authData`