2011-05-13 87 views
0

我有一个问题需要解决。
我想在我的facebook应用程序创建的facebook群组中创建一个事件。
如何创建一个Android应用程序在我自己的组中创建一个Facebook事件?

这是下面的代码:

的JSONObject事件=新的JSONObject();
Bundle bundle = new Bundle();
bundle.putString(“method”,“events.create”);
event.put(“page_id”,groupid);
event.put(“name”,“App event test”);
event.put(“location”,“locationtest”);
event.put(“start_time”,“2011-05-14T10:13:00”);
event.put(“end_time”,“2011-05-15T10:20:00”);
event.put(“privacy_type”,“OPEN”);
bundle.putString(“event_info”,event.toString());
facebook.request(bundle);

当我执行应用程序时,我只能看到我在事件列表中创建的事件,但在我的新提要和我的组的新提要中看不到该事件。
我不知道如何解决它。

请给我点意见〜谢谢:)

回答

0

我认为,所有你缺少的是POST就行了“facebook.request(束);” 尝试将其更改为“facebook.request(bundle,”POST“);”

相关问题