title: Flutter facebook app events : lateinit property anonymousId has not been initialized
body: <p>I'm trying to call Facebook app events in my flutter project.
  I'm using the dependency <a href="https://pub.dev/packages/facebook_app_events" rel="nofollow noreferrer">facebook_app_events: ^0.12.0</a>.
  meta-data is also added in the manifest file.</p>
  <pre><code>    &lt;meta-data
          android:name=&quot;com.facebook.sdk.ApplicationId&quot;
          android:value=&quot;@string/facebook_app_id&quot; /&gt;
  
  
  void callFBEvent() async {
      try {
        var i = await facebookAppEvents.getAnonymousId();
        await facebookAppEvents.setAdvertiserTracking(enabled: true);
        await facebookAppEvents.logEvent(
            name: &quot;User_Selection_Screen&quot;, parameters: {
          &quot;User_Selection&quot;: &quot;User_Selection&quot;,
        });
        print(&quot;facebook event success User_Selection_Screen&quot;);
      }catch(e){
        print(e);
      }
    }
  </code></pre>
  <p>Getting below error</p>
  <pre><code>kotlin.UninitializedPropertyAccessException: lateinit property anonymousId has not been initialized
      at id.oddbit.flutter.facebook_app_events.FacebookAppEventsPlugin.handleGetAnonymousId(FacebookAppEventsPlugin.kt:82)
      at id.oddbit.flutter.facebook_app_events.FacebookAppEventsPlugin.onMethodCall(FacebookAppEventsPlugin.kt:55)
      at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
      at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:84)
      at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:822)
      at android.os.MessageQueue.nativePollOnce(Native Method)
      at android.os.MessageQueue.next(MessageQueue.java:336)
      at android.os.Looper.loop(Looper.java:174)
      at android.app.ActivityThread.main(ActivityThread.java:7386)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:980)
  </code></pre>