Anthony Demanuele
Anthony Demanuele

Reputation: 53

Facebook API version detection

We recently received this alert from Facebook on our Unity App.

Your app has been making recent API calls to Graph API v2.0, which will reach the end of the 2-year deprecation window on Monday, August 8, 2016. Please migrate all calls to v2.1 or higher in order to avoid potential broken experiences.

The SDK version is 6.2.2 which should be on API 2.2 - 2.4.

These are the APIs/Properties I'm using:

FB.Init(OnFbInit, OnHideUnity); FB.API("/me?fields=name", Facebook.HttpMethod.GET,GotFBData); FB.IsLoggedIn; FB.UserId FB.AccessToken FB.Login

Why is Facebook saying we are using API 2.0? Is it safe to ignore?

Upvotes: 0

Views: 249

Answers (2)

as.justis
as.justis

Reputation: 1

Just recently one dude found an answer to this. Looks like Facebook has a bug where it mistakenly assumes an app is using v2.0. Nevertheless, I think it won't hurt to check if an app is properly updated.

Facebook Developer Bug page

Unity Answers URL

Upvotes: 0

phwd
phwd

Reputation: 19995

I don't think it's the /me?fields=name call there is probably another call you are using in some legacy code perhaps. Consider using API Upgrade Tool you can find out more information about it at https://developers.facebook.com/docs/graph-api/advanced/api-upgrade-tool/

Upvotes: 1

Related Questions