Android 通过Facebook SDK向analytics发送事件时出现问题
我正在使用com.facebook.android:facebook核心:5.0.0 当我尝试像这样将事件发送到分析时Android 通过Facebook SDK向analytics发送事件时出现问题,android,facebook,facebook-analytics,Android,Facebook,Facebook Analytics,我正在使用com.facebook.android:facebook核心:5.0.0 当我尝试像这样将事件发送到分析时 val logger = AppEventsLogger.newLogger(context, "my_app_id") logger.logEvent("event", Bundle()) 但我在日志中有错误 E/GraphResponse: {HttpStatus: 404, errorCode: 803, subErrorCode: -1, error
val logger = AppEventsLogger.newLogger(context, "my_app_id")
logger.logEvent("event", Bundle())
但我在日志中有错误
E/GraphResponse: {HttpStatus: 404, errorCode: 803, subErrorCode: -1,
errorType: OAuthException, errorMessage: (#803) Some of the aliases you
requested do not exist: "my_app_id"}
应用程序的设置与中类似
Facebook的支持没有回答我的两点:
1:在清单中添加两个活动
<activity android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="@string/app_name"/>
<activity android:name="com.facebook.CustomTabActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="@string/fb_login_protocol_scheme"/>
</intent-filter>
</activity>
我不知道为什么占位符不起作用。那么……你是真的使用了你的应用程序id,还是尝试了字符串“我的应用程序id”?@luschn我真的使用了我的应用程序id:D谢谢你的澄清
resValue "string", "facebook_app_id", "$fbAppId"
resValue "string", "fb_login_protocol_scheme", "fb$fbAppId"