I use facebook-android-sdk-4.19.0 in Android Studio, and I followed the quick Facebook guide at https://developers.facebook.com/docs/android/getting-started (click the Quick Start button to log in to your facebook account). The guide said to copy and paste the following code into a snippet for tracking application logs
import com.facebook.FacebookSdk; import com.facebook.appevents.AppEventsLogger; public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); FacebookSdk.sdkInitialize(getApplicationContext()); AppEventsLogger.activateApp(this); } }
However, when I copy the code in android studio, it seems that all the methods of FacebookSdk.sdkInitialize () are out of date. The documentation here https://developers.facebook.com/docs/reference/android/current/class/FacebookSdk/ does not tell you which method to use to initialize sdk instead of sdkInitialize (). Which method should be used?
android deprecated facebook facebook-android-sdk
Celal Ozan Berk Yavuz Jan 26 '17 at 22:47 2017-01-26 22:47
source share