Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook Limited Login short-lived auth token limitations #5311

Open
MykhailishynMykola opened this issue May 2, 2024 · 1 comment
Open
Labels
auth question General question

Comments

@MykhailishynMykola
Copy link

State your question
Following the update of the Facebook SDK to version 17.0, users who have disabled permissions on the App Tracking Transparency pop-up can only log in using the LoginTracking.limited tracking option. This option only provides an authToken with a limited expiration duration of 1 hour (accessToken is nil).
We cannot use the default Facebook Identity provider anymore, because it requests "graph.facebook.com" which is unavailable without the access token. That is why we created a new custom Identity provider with OpenID Connect type and Issuer - "www.facebook.com". Now everything works fine but only for an hour after the last user login.
Facebook does not offer an alternative method for refreshing a user's auth token besides explicitly requesting them to log back into the app. We aim to avoid requiring users to log in every hour to update their data in the DynamoDB database.
It is also worth saying that we can no longer use a version of the Facebook SDK older than 17.0 due to AppStore restrictions from May 1 related to the Privacy Manifest.

Any insights, suggestions, or contributions toward resolving this issue would be greatly appreciated. Thank you for your attention and support.

Which AWS Services are you utilizing?
AWSCore, AWSDynamoDB, AWSAppSync, AWSCognitoIdentityProvider

Provide code snippets (if applicable)

Environment(please complete the following information):

  • SDK Version: [2.30.4]
  • Dependency Manager: [Cocoapods]
  • Swift Version : [5.0]

Device Information (please complete the following information):

  • Device: [iPhone11]
  • iOS Version: [iOS 17.4.1]
@ruisebas ruisebas added question General question auth labels May 2, 2024
@ruisebas
Copy link
Member

ruisebas commented May 3, 2024

Hi @MykhailishynMykola , thanks for opening this issue.

The team will take a look and post an update once we have more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth question General question
Projects
None yet
Development

No branches or pull requests

2 participants