Skip to content

FB 17.0.0 and Limited Login APIs

Compare
Choose a tag to compare
@AGulev AGulev released this 10 Apr 07:21
· 2 commits to master since this release
d4b622e
  • FB SDK updated to the version 17.0.0. In this version FB made changes in login flow, read about it in Changes made to Facebook Login SDK for iOS

  • New functions for limited login were added:

    • facebook.login_with_tracking_preference() - iOS ONLY. Login to Facebook and request a set of permissions. Allows developers to signal that a login is limited in terms of tracking users.
    • facebook.get_current_authentication_token() - iOS ONLY. This function returns the currently stored authentication token after a previous successful login.
    • facebook.get_current_profile() - iOS ONLY. After your application receives the logged-in user’s authentication token, you can use this function to read information that user has granted to your application.
    • facebook.set_default_audience() - iOS ONLY. The audience that should be able to see the publications. Should be called before facebook.login_with_tracking_preference().
    • facebook.LOGIN_TRACKING_ENABLED - available only if in App Tracking Transparency request user enabled tracking.
    • facebook.LOGIN_TRACKING_LIMITED - should beused if in App Tracking Transparency request user disabled tracking.

If the user has disabled tracking but you still attempt to log in using facebook.login_with_permissions() or its equivalent facebook.login_with_tracking_preference() with facebook.LOGIN_TRACKING_ENABLED, you will receive a Facebook Access token.

re information about the changes is available in the official Facebook documentation: