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

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

Open
5 tasks done
xiaowangqinghui opened this issue Apr 26, 2024 · 7 comments
Open
5 tasks done

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

xiaowangqinghui opened this issue Apr 26, 2024 · 7 comments

Comments

@xiaowangqinghui
Copy link

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'
@zhong-meta
Copy link

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.

@Ariandr
Copy link

Ariandr commented Apr 27, 2024

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?

@owllyi
Copy link

owllyi commented Apr 29, 2024

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

@Haileysayhi
Copy link

@owllyi 請問你解決這個問題了嗎?

@owllyi
Copy link

owllyi commented May 29, 2024

iOS Nonce登陆一次就失效了,需要再次拉起登陆来signin
link一次,signin一次。拉起两次

@owllyi
Copy link

owllyi commented May 29, 2024

string nonce = FaceBookManager.GetRawNonce();
credential = Firebase.Auth.OAuthProvider.GetCredential("facebook.com", accessToken, nonce, null);
m_Auth.CurrentUser.LinkWithCredentialAsync(credential)

@kobe1941
Copy link

kobe1941 commented Jun 7, 2024

17.0.0这个版本在iOS17上如果拒绝了idfa就会登录失败,要用服务器JWT格式校验token的方案,客户端要升级Facebook SDK版本和Xcode到最新版本;

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

No branches or pull requests

6 participants