cordova-plugin-facebook-connect / cordova-plugin-facebook-connect

Use the latest Facebook SDK in your Cordova and Ionic projects
Other
63 stars 90 forks source link

How to check SDK version #94

Closed dland512 closed 2 years ago

dland512 commented 2 years ago

Like many people, I recently got a message from facebook stating that they will no longer supporting android webviews after October 5, 2021.

Based on a few other posts here and here it looks as though this plugin will still work without the facebook app installed as long as it uses SDK version 8.2.0 or greater.

My question is how can I check which version of the Facebook SDK comes with the version of this plugin I have installed? I have version 1.1.0 of this plugin and inside cordova-plugin-facebook-connect/plugin.xml I see this

<preference name="FACEBOOK_ANDROID_SDK_VERSION" default="8.1.0"/>

Is that the correct value?

noahcooper commented 2 years ago

@dland512 you can check plugin.xml for the default SDK version, but of course, you have the ability to override the version when adding the plugin to your project using the FACEBOOK_ANDROID_SDK_VERSION preference. For example:

cordova plugin add cordova-plugin-facebook-connect --variable APP_ID="123456789" --variable APP_NAME="myApplication" --variable FACEBOOK_ANDROID_SDK_VERSION="8.2.0"

You can check the CHANGELOG for details on each release, including when the default SDK version was updated. Major versions of this plugin align with major versions of the Facebook SDK and Graph API, e.g. v1 is v8, v2 is v9, v3 is v11 (Facebook never released v10), v4 will be v12.

dland512 commented 2 years ago

Great info, thank you!