I am building a Android app in flutter. For facebook SDK integration I am using flutter_meta_sdk package. I have managed to add all the required app id and client tokens to manifest.xml using strings.xml. in the app level build.gradle I have added the implementation
implementation 'com.facebook.android:facebook-android-sdk:latest.release'
Then in the main.dart I created object of the FlutterMetaSDK class. am attaching the associate code .
final fbMeta = FlutterMetaSdk();
await fbMeta.setAutoLogAppEventsEnabled(true);
await fbMeta.logEvent(
name: "${DateTime.now().toIso8601String()} App Opened",
parameters: {
'button_id': 'the_clickme_button',
});
await fbMeta.logCompletedRegistration(registrationMethod: "Local");
final appId = await fbMeta.getApplicationId();
logger.w("AppId: $appId");
the code get compiled and the app id is getting printed. But the issue is event which I am trying to log in the fb event manager console is not triggered. Moreover in that console its showing me warning as
Update your apps to the latest Facebook SDK Some of your apps need to be updated to the latest version of the Facebook SDK in order to deliver ads to people using iOS 14.5 or later devices.
but I am building the app for android only. I don't have configuration for IOS.
Someone please help me to fix this and successfully integrating the Facebook SDK to my app so the marketing team can run the ad campaign using the app ID.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744698078a4588614.html
评论列表(0条)