facebook / facebook-ios-sdk

Used to integrate the Facebook Platform with your iOS & tvOS apps.

Home Page:https://developers.facebook.com/docs/ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sdk17.0.0 iOS系统17以上 登录不了 token验证失败

xiaowangqinghui opened this issue · comments

Checklist before submitting a bug report

Xcode version

15.0.1

Facebook iOS SDK version

17.0.0

Dependency Manager

CocoaPods

SDK Framework

Login

Goals

能够正常登录

Expected results

能够成功登录

Actual results

获取用户信息失败,并且后端token校验失败

Steps to reproduce

登录

Code samples & details

Invalid OAuth access token - Cannot parse access token'

Hello,

In response to the upcoming changes to ATT enforcement, 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: https://developers.facebook.com/docs/facebook-login/limited-login/ios
https://developers.facebook.com/docs/facebook-login/limited-login/unity/

See more details here.

Hi @zhong-meta
It's still a marvel for me why an optional advertising identifier influences the validity of the login access token. It defies all rules of software engineering. Can you provide any details why does it have to be this way?

使用limited login接口之后,报错190,Bad signature。
从facebook拿到AuthenticationToken,然后调用Firebase.Auth.FacebookAuthProvider.GetCredential(AuthenticationToken),再调用firebase的SignInWithCredentialAsync来登录,就会报错。
请问使用limited login后,该如何正确处理SignInWithCredentialAsync调用呢?