FacebookSdk.sdkInitialize (Context) is deprecated

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

    From the documentation about upgrading SDK:

    The Facebook SDK is now auto initialized on Application start. If you are using the Facebook SDK in the main process and don't need a callback on SDK initialization completion you can now remove calls to FacebookSDK.sdkInitialize. If you do need a callback, you should manually invoke the callback in your code.

    Refer to: https://developers.facebook.com/docs/android/upgrading-4x

    UPDATE

    In SDK 4.22 the title, description, caption and image field of FBSDKShareLinkContent are deprecated. Consider removing them from usage.

提交回复
热议问题