FacebookSdk.sdkInitialize (Context) is deprecated

后端 未结 5 1832
抹茶落季
抹茶落季 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:22

    FacebookSdk.sdkInitialize(getApplicationContext()); 
    

    This method is deprecated so simply delete this line of code in your class. because according to the latest Facebook we now don't need to initialize the SDK manually, it gets initialize by itself.

提交回复
热议问题