facebook-android-sdk
facebook-android-sdk copied to clipboard
Feature Request: Default Graph API version is pointing to v16.0 which is deprecating in couple of months
Checklist before submitting a feature request
- [x] I've updated to the latest released version of the SDK
- [x] I've searched for existing Github issues
- [x] I've read the Code of Conduct
Goals
Default Graph API version is not updated since SDK 16.x.x.
Expected results
Default Graph API version should be latest version available during release
Code samples & details
// INSERT YOUR CODE HERE
I have the same question.
Although FacebookSdk.setGraphAPIVersion() can change graph api version but it seems to be provided for development and debugging purpose.
fun setGraphApiVersion(graphApiVersion: String) { if (!BuildConfig.DEBUG) { Log.w(TAG, "WARNING: Calling setGraphApiVersion from non-DEBUG code.") } if (!Utility.isNullOrEmpty(graphApiVersion) && FacebookSdk.graphApiVersion != graphApiVersion) { FacebookSdk.graphApiVersion = graphApiVersion } }
FYI, I noticed this in the CHANGELOG:
To use the latest Graph API version, please specific that version in your GraphRequest call.
I’m not using the Graph API directly, I only use modules from react-native-fbsdk-next (which pulls in facebook-android-sdk:17.0.0). Despite that, the SDK still makes background calls to v16.0, which are failing intermittently (e.g., -1005, network connection lost) especially under flaky network conditions. Now that this version is officially deprecated, can we update this SDK to use the latest version of the graph API?
yes, there is some background call when the Android Application is constructed
https://graph.facebook.com/v16.0/app/mobile_sdk_gk?access_token=&fields=gatekeepers&format=json&sdk_version=18.0.3&sdk=android&platform=android
https://graph.facebook.com/v16.0/app?access_token=&fields=supports_implicit_sdk_logging%2Cgdpv4_nux_content%2Cgdpv4_nux_enabled%2Candroid_dialog_configs%2Candroid_sdk_error_categories%2Capp_events_session_timeout%2Capp_events_feature_bitmask%2Cauto_event_mapping_android%2Cseamless_login%2Csmart_login_bookmark_icon_url%2Csmart_login_menu_icon_url%2Crestrictive_data_filter_params%2Caam_rules%2Csuggested_events_setting%2Cprotected_mode_rules%2Cauto_log_app_events_default%2Cauto_log_app_events_enabled%2Capp_events_config.os_version(12)&format=json&sdk=android
https://graph.facebook.com/v16.0/app/mobile_sdk_gk?access_token=&fields=gatekeepers&format=json&sdk_version=18.0.3&sdk=android&platform=android
https://graph.facebook.com/v16.0/app/model_asset?access_token=&fields=use_case%2Cversion_id%2Casset_uri%2Crules_uri%2Cthresholds&format=json&sdk=android
https://graph.facebook.com/v16.0/xxx/activities