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
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.

Related

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?
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

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 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.

Unable to use FQL with my Facebook application

I am aware of the fact that FQL has been depricated in recent versions of API.
But I wish to be able to use FQL as long as I can for my app. The problem is I am not able to select old api version for this app [ what is compatible with FQL].
Older API options appears when I choose application as Graph API Explorer.
But as after I select my own Facebook app , my api version options are limited to 2.3 .
I tried selecting unrevisioned which is supposed to select the oldest API version available but I still get the error.
{
"error": {
"message": "(#12) fql is deprecated for versions v2.1 and higher",
"type": "OAuthException",
"code": 12
}
}
Well you shouldn't use FQL, just move to Graph API, with a slight graph theory learning curve, you should eventually get the hang of it.
BUT From the Documentation
Can my app make calls to versions older than the current version?
An app can make calls to the version of the API that was the latest
available when the app was created, as well as any newer,
un-deprecated versions launched after the app is created.
Here's an example:
If your app was created before the launch of v2.0, while v1.0 was
available, then it will be able to make calls to v1.0 until the
expiration date of that version. If your app was created after v2.0
was released, it will be able to make calls to v2.0 until the
expiration date of that version, and any subsequent versions (v2.1
etc) until their expiration dates. If an app is created and isn't used
to make any calls or requests before a new version is released, it
will not have the ability to use older versions. Here's an example to
explain this:
If your app was created while v2.0 was the latest version available,
but not used until after v2.1 had launched, it will only be to use
v2.1, and not v2.0. If your app was created while v2.0 was the latest
version available, and then used before v2.1 had launched, it will
still be able to use v2.0 even after the launch of v2.1.
so when was your app created and used ?
FQL should be accessible if your app was created and used during Facebook V2.0 before 2.1 came along and V2.0 is available till August 7, 2016

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).