I am trying to follow the instructions at https://developers.facebook.com/docs/app-events/android#legacy-activation in the section "Legacy SDK Initialization". They say that "in the Facebook SDK for Android v4.18, and earlier, the SDK must be initialized". I am using Facebook SDK v3.23.1. They provide a code to demonstrate how to initialize the SDK. The problem that I am experiencing is that as part of the sample code, they use the following two lines:
import com.facebook.FacebookSdk;
FacebookSdk.sdkInitialize(getApplicationContext());
When I try to do that, I get the following error:
Cannot resolve symbol 'FacebookSdk'
By testing, I realized that import com.facebook.FacebookSdk
can only be used from Facebook SDK 4.0.0 and higher, but I am using Facebook SDK 3.23.1. Is there an alternative way to initialize Facebook SDK for SDK v3.23.1?