Open kylejohnstonJC opened 7 months ago
On deeper investigation, it seems this outcome depends on the ATT (AppTrackingTransparency) dialog.
If the user denies these permissions when prompted, it seems the accessToken subsequently returned by the login process is invalid, causing all Graph API requests to fail.
We also experience the same issue. We want to update FB SDK because Apple requires privacy manifest for 3rd party SDKs and FB SDK implemented this feature in 17.0.0 version. Unfortunately, we can't update to 17.0.0 because of this bug, It breaks app functionality. Is there any plan to fix this issue in next release ?
Hello,
We just found this same issue here in production and apparently this is an expected behaviour.
[My login access token is Invalid and/or I can’t check the expiration date of my access token after upgrading the iOS SDK to v17.0.0.0.](https://developers.facebook.com/docs/facebook-login/limited-login/faq/#faq_3803539939969324)
In response to [the upcoming changes to ATT enforcement](https://developer.apple.com/news/?id=3d8a9yyh), we made changes to the iOS SDK and the SDK no longer provides valid user access tokens in scenarios where the user opts out of ATT. The access token validation or Graph API requests may throw errors like OAuthException - “Invalid OAuth access token - Cannot parse access token”. Our recommendation is that users integrate Limited Login following the official documentation:
[Limited Login for iOS](https://developers.facebook.com/docs/facebook-login/limited-login/ios)
[Limited Login for Unity](https://developers.facebook.com/docs/facebook-login/limited-login/unity/)
REF: https://developers.facebook.com/docs/facebook-login/limited-login/faq/
To solve it we should implement the limited login functionality. https://developers.facebook.com/docs/facebook-login/limited-login/ios
We also experience the same issue. We want to update FB SDK because Apple requires privacy manifest for 3rd party SDKs and FB SDK implemented this feature in 17.0.0 version. Unfortunately, we can't update to 17.0.0 because of this bug, It breaks app functionality. Is there any plan to fix this issue in next release ?
Apple only requires the privacy manifest, so you can manually copy those 'privacy manifest' files into your Xcode project.
Checklist
Environment
2021.3.36
17.0.0
iOS
version17.4.1
Goals
A functioning
FB.API
interface on iOS that allows calls to be made to the Facebook Graph API.Expected Results
The
FB.API
should provide a means to make requests to the Facebook Graph API if a login mode that yields an AccessToken is used.Actual Results
When "Classic" Login is used with tracking enabled (either via
FB.LogInWithReadPermissions
orFB.Mobile.LoginWithTrackingPreference
withLoginTracking.ENABLED
passed through as theLoginTracking
argument) all calls to Graph API throughFB.API
subsequently fail, throwing 400 errors.Steps to Reproduce
LogInWithReadPermissions
orLoginWithTrackingPreference
, requesting access to permissions that you intend to leverage for Graph API calls.FB.API
interface, for example, querying their friends list via/me/friends
.Code Samples & Details