Unclear Facebook Graph API deprecation warning

Viewed 451

My iOS app is using Firebase + Facebook (version 7.1.1) to authenticate users.

I have now received the following warning:

Your App currently has access to Graph API v3.0 which will reach the end of its 2-year lifetime on 28 July, 2020. To ensure a smooth transition, please migrate all calls to Graph API v3.1 or higher. Use the API Upgrade Tool to understand exactly how this change will impact your app.

The API upgrade tool shows the following:

Facebook API Upgrade Tool

I am assuming (not sure) that the login is using this end-point, since the only usage of GraphRequest is the following:

  • graphPath: "me", parameters: ["fields": "picture.type(large)"]
  • graphPath: "me", parameters: ["fields": "id"]
  • graphPath: "me/friends", parameters: ["fields": "id"]

I am using a custom Facebook login button and therefore using the following to login:

let permissions = ["public_profile", "email", "user_friends"]

LoginManager().logIn(permissions: permissions, from: viewController) { _, error in
    // implementation
}

What exactly do I need to change to avoid seeing this warning?

0 Answers
Related