Facebook api version used in facebook android sdk

I receive the following warnings about Facebook Developers:

'MyApp currently has access to the Graph API v2.2, which will reach its 2-year lifespan on March 27, 2017. To ensure a smooth transition, please transfer all calls to Graph API version 2.3 or higher.

and I am using Android Android SDK 3.23.0.

How do I find out the version of the graphics API used in such an Android SDK for Android?

thanks

+7
source share
3 answers

I had the same problem, and furiously, I could not find anything about this in the documentation. However, you can refer to these two links:

https://developers.facebook.com/docs/android/upgrading-3.x https://developers.facebook.com/docs/android/upgrading-4x

And encourage your version (3.23.0) to be on the graphics API version 2.2 or 2.3 - you couldnโ€™t understand which of the two. Alternatively, it seems that you can call this function from your code:

com.facebook.internal.ServerProtocol.getAPIVersion(); 

This should return a string of the current version of the charting API that you can register. In my case, for the SDK version 4.0.1 it was a graphical API "v2.3"

Update. It looks like in newer versions of the FB SDK (just tried in v4.23.0), getApiVersion() been changed to getDefaultAPIVersion() . Seems to be doing the same.

+6
source

See this image for an answer.

you can change the version in the toolbar of the fb application in the settings โ†’ advanced for the test and production versions

+2
source

The current, latest version of the graphics API is v2.8 , and the SDK version is 4.19.0 . you should update it.

Add a compilation dependency with the latest Facebook SDK in the build.gradle file

 dependencies { compile 'com.facebook.android:facebook-android-sdk:4.+' } 

You can see the link link -

+1
source

All Articles