I have this code
JSONObject event = new JSONObject();
Bundle bundle = new Bundle();
bundle.putString("method","events.create");
event.put("name", "name");
event.put("location", "Address");
event.put("start_time", "2011-12-15T10:13:00");
event.put("end_time", "2011-12-15T10:20:00");
event.put("privacy_type", "OPEN");
event.put("event_info", "INFO");
Log.d(TAG,"evento "+mFacebook.request(bundle));
and this error…
{"error_code":100,"error_msg":"The parameter event_info is required","request_args": [{"key":"access_token","value":"asdasdasd"},{"key":"method","value":"events.create"},{"key":"format","value":"json"}]}
i’m using the old api…if you know create events in Android using the new Api I will be grateful
Thanks in advance
You can create event using Graph API: send POST request. I try with parameters: name, start_time, end_time, description, privacy_type.
If I right understood requered params only name and start_time. If you not set end_time, it will be equal start_time + 3h. By default privacy is OPEN.
But I not understood, what you want from event_info?
You can add to POST field location. Or you want send extend information with facebook object as some place (as in Graph API venue)?