Hey I know this was asked before, but none of the solutions seem to help. I\'m using first time Facebook SDK in my application.
What I\'ve tried:
I had tried
After checking the documentation I found that they are asking to initialize FacebookSdk in Application class onCreate()
Method.
Snap code from Facebook doc:
public class MyApplication extends Application {
// Updated your class body:
@Override
public void onCreate() {
super.onCreate();
// Initialize the SDK before executing any other operations,
FacebookSdk.sdkInitialize(getApplicationContext());
AppEventsLogger.activateApp(this);
}
}