AppTrackingTransparency permission is mandatory for FBSDK Login?

971 Views Asked by At

I am using FBSDK for single sign-on do we need to add the app AppTrackingTransparency permission in the IOS app?

1

There are 1 best solutions below

2
On

Looks like it... it is pretty clear on the Facebook Getting Started site in the Get Consent section

> Get Device Consent

Starting with iOS 14.5, you will need to set AdvertiserTrackingEnabled and log each time you give a device permission to share data with Facebook. If a device provides consent, call the setAdvertiserTrackingEnabled method of the FBSDKSettings class and set it to YES for Objective-C or true for Swift. If a device does not allow tracking, set setAdvertiserTrackingEnabled to NO for Objective-C or false for Swift. The method will return a boolean value to indicate whether the method is set successfully or not.