FacebookSdk.sdkInitialize (Context) is deprecated

后端 未结 5 1861
抹茶落季
抹茶落季 2020-12-13 01:52

I\'m using facebook-android-sdk-4.19.0 in Android Studio and I followed the Facebook quick start guide at https://developers.facebook.com/docs/android/getting-started (Click

5条回答
  •  孤街浪徒
    2020-12-13 02:28

    FacebookSdk.sdkInitialize(getApplicationContext());

    No need of this method as Facebook doc says: This function initializes the Facebook SDK is called automatically on app start up if the proper entries are listed in the AndroidManifest, such as the facebook app id. Automatic event logging from 'activateApp' can be controlled via the 'com.facebook.sdk.AutoLogAppEventsEnabled' manifest setting.

提交回复
热议问题