我正在尝试通过Android向Facebook报告安装事件,使用以下呼叫:
com.facebook.Settings.publishInstallAsync(<context>, <appId>);
在DDMS中,我看到发送了以下请求:
02-23 21:02:30.205: D/FacebookSDK.Request(4871): Request:
02-23 21:02:30.205: D/FacebookSDK.Request(4871): Id: 2
02-23 21:02:30.205: D/FacebookSDK.Request(4871): URL: https://graph.facebook.com/<app id appears here>/activities?format=json&sdk=android&migration_bundle=fbsdk%3A20121026
02-23 21:02:30.205: D/FacebookSDK.Request(4871): Method: POST
02-23 21:02:30.205: D/FacebookSDK.Request(4871): User-Agent: FBAndroidSDK.3.0.1
02-23 21:02:30.205: D/FacebookSDK.Request(4871): Content-Type: multipart/form-data; boundary=3i2ndDfv2rTHiSisAbouNdArYfORhtTPEefj3q2f
02-23 21:02:30.205: D/FacebookSDK.Request(4871): Parameters:
02-23 21:02:30.205: D/FacebookSDK.Request(4871): format: json
02-23 21:02:30.205: D/FacebookSDK.Request(4871): sdk: android
02-23 21:02:30.205: D/FacebookSDK.Request(4871): migration_bundle: fbsdk:20121026
02-23 21:02:30.205: D/FacebookSDK.Request(4871): Attachments:
02-23 21:02:30.205: D/FacebookSDK.Request(4871): attribution: 9201d8b6-2c14-47e1-b326-0c397a9498d0
02-23 21:02:30.205: D/FacebookSDK.Request(4871): event: MOBILE_APP_INSTALL
收到以下回复:
02-23 21:02:31.265: D/FacebookSDK.Response(4871): Response (raw)
02-23 21:02:31.265: D/FacebookSDK.Response(4871): Size: 4
02-23 21:02:31.265: D/FacebookSDK.Response(4871): Response:
02-23 21:02:31.265: D/FacebookSDK.Response(4871): true
02-23 21:02:31.265: D/FacebookSDK.Response(4871): Response
02-23 21:02:31.265: D/FacebookSDK.Response(4871): Id: 3
02-23 21:02:31.265: D/FacebookSDK.Response(4871): Size: 4
02-23 21:02:31.265: D/FacebookSDK.Response(4871): Responses:
02-23 21:02:31.265: D/FacebookSDK.Response(4871): [{Response: responseCode: 200, graphObject: GraphObject{graphObjectClass=GraphObject, state={"FACEBOOK_NON_JSON_RESULT":true}}, error: null, isFromCache:false}]
但是,我没有在AppEvents选项卡或移动应用程序安装选项卡的Facebook仪表板中提及此激活。
我正在使用Facebook SDK 3.0.1,Facebook App已安装并登录到我正在测试的Android设备上。
此外,我可以看到iOS激活就好了。
此问题的任何解决方案,不要求我将Facebook SDK升级到最新版本?
答案 0 :(得分:0)
作为后续跟进,我可以更新我已将Facebook SDK更新为3.7.0版,并将'publishInstallAsync'替换为较新的'activateApp'方法。
这解决了我的问题。