Skip to content

What is the default version used during a GraphRequest? #550

Answered by hugoewarrior
ivanngyb asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ivanngyb i was able to check the code and i found out that

  1. For Android it will be based on what version of the SDK is installed in your Build gradle (com.facebook.android:facebook-android-sdk), in my case it was 17.0.2, then checking the release code, i found this file: @JvmStatic fun getDefaultAPIVersion() = "v16.0"
  2. For IOS it is defined by the version on Podspec from this library (17.0) and then looking at the code we get: v17 https://github.dev/facebook/facebook-ios-sdk/blob/9ed465ccd73c231144d49a9c681774577c616f34/FBSDKCoreKit/FBSDKCoreKit/include/FBSDKCoreKitVersions.h#L10-L11

Hope it helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ivanngyb
Comment options

Answer selected by ivanngyb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants