最近几天,我一直在尝试将Facebook签到集成到我的Android应用程序中,到目前为止,我只能完成身份验证过程并发布到墙上。我一直卡在Open Graph上。
我目前在我的Facebook应用程序中创建了1个对象类型和1个操作类型。
对象类型:航班
操作类型:签到
我试图与这些对象进行交互,但我不断收到以下错误消息:响应:{"error":{"message":"(#100) The parameter object is required","type":"OAuthException","code":100}}
针对以下代码:
Bundle params = new Bundle();
params.putString("title", flightNumber);
params.putString("description", flightInfo);
Utility.mAsyncRunner.request("me/objects/flightinfoapp:flight", params, "POST",
new placesCheckInListener(), null);
当我将“type”作为参数包含进去时,该参数与Facebook应用程序的Open Graph代码生成器生成的内容完全相同,但出现了以下错误:
响应:{"error":{"message":"Cannot specify type in both the path and query parameter.","type":"OAuthException","code":2500}}
针对以下代码:
Bundle params = new Bundle();
params.putString("type", "flightinfoapp:flight");
params.putString("title", flightNumber);
params.putString("description", flightInfo);
Utility.mAsyncRunner.request("me/objects/flightinfoapp:flight", params, "POST",
new placesCheckInListener(), null);
如果有人可以帮我一下,我会非常感激!提前谢谢!