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

How to know the login is normal mode or limited mode?

phillip5094 opened this issue · comments

Checklist before submitting a feature request

Goals

I want to know how I can determine whether it is a 'limited login' or a 'normal login'.

Expected results

In LoginConfiguration, we have set the tracking value to .enable.
We initially planned to determine limited login mode simply when it is not ATTrackingManagerAuthorizationStatus.authorized, but we discovered an exception.
(On iOS 14.5, even when App Tracking was denied, the login proceeded in normal login mode instead of limited login mode.)

Whether it is normal login or limited login, since both AccessToken.current.tokenString and AuthenticationToken.current.tokenString are not null, it is difficult to determine based on tokenString.
Please provide a method to easily check whether the login is limited login or normal login after the login success callback.

Code samples & details

No response