Facebook API version detection - unity3d

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?

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/

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

Related

How to update/upgrade a Facebook App API version on Facebook's Developers Panel? I even need to do it?

I received, recently, an e-mail from Facebook telling me that my APP is doing some deprecated calls that will stop working on August, 8th
Using the Facebook API Migration Tool, it shows me no calls to older APIs, so, I am good to go
I use the Facebook PHP SDK in my application and all places where "graph_version" appears, it is forced to v2.5
In Facebook's Developers Dashboard, my APP is showing API version 2.0 (was the API at the creation time)
So, do I need to worry? When the date comes, will my APP API Version change automaticly? How can I update my APP info on Dashboard to set the API version to 2.5 or above?
Thank you in advance
You can upgrade the Facebook API version of your app simply by going to the app dashboard, then Settings -> Advanced (in a drop-down menu under Settings) or use the URL: https://developers.facebook.com/apps/YOUR_APP_ID_HERE/settings/advanced/
If you press on the "?" mark, you will see that this is the oldest version your app can call. It means you can use any versions that newer than this version, all older versions can not be used.
So you'll be ok.

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
Why is Facebook saying we are using API 2.0? Is it safe to ignore?
Thanks,
Visit this link
https://developers.facebook.com/tools/api_versioning/
Then select your app. This will determine exactly which API version you are using.
If you wish to upgrade, this is the place, otherwise, safe to ignore.

Facebook Graph API - Force Minimum Version?

When Facebook depreciated Graph API v1.0 they provided a switch in the application settings to force the application to use Graph API v2.0. This greatly simplified testing of the application before v1.0 was depreciated.
I'm now in the process of updating an application to support a more recent version of the Graph API and would really like to be able to force the application to use a minimum Graph API version for testing purposes but there doesn't seem to be any way to do so.
I have versioned many of my calls so that I can set the Graph API version, but that won't catch problems such as the depreciation of FQL in v2.1.
Does anyone know of an overall way to force a Facebook application to use a minimum Graph API for testing purposes before the current API is depreciated?
I happened upon a solution when I was creating test users for my application.
Facebook has added an API Version to Install setting that is shown if you select Yes for Authorize Test Users for This App?
I hope someone else in the same situation finds this useful.

How to use facebook api version v2.2 instead of v2.4

I have a facebook web app & it's working fine on older version of the Facebook API. Today, I have created a new app. I am trying to use that old codes into my new app based on the updated API. I want to use facebook api v2.2. Is it possible to mention its version while creating a new app?
You can only use v2.2 with an App created before v2.3 was introduced. You can only upgrade to a newer version, but never to an older one.
Btw, creating an App with an older API version would be a very bad idea anyway, better create something that works with the latest API.

How to use facebook api version 1.0 instead of 2.0

I want to use facebook api 1.0. Is it possible to mention its version directly in the code, like in facebook->api() call? or give me a download link for it. I searched for its download link but i couldnt find it.
I want to use v1.0 because there is something which v2.0 is not supporting, like read_requests permissions to get user's friend requests or if there is way to get friend requests in v2.0 please mention it in your answer.
i created my app some 12 days ago.
As the Platform Versioning page refers to, you are probably out of luck:
Can my app make calls to versions older than the current version?
If your app was created before the launch of v2.0 [April 30, 2014], while v1.0 was available, then it will be able to make calls to v1.0 until the expiration date of that version [April 30, 2015].
EDIT: As WizKid mentions, apps that existed before 4/30/2014 can use v1.0 of the API. According to the f8 dev blog post on 4/30/2014:
...existing apps have a full year to upgrade (April 30, 2015).