String eventName = content.getAttributeByName("name").getValue();
String eventStartDate = content.getAttributeByName("startTime")
.getValue();
String eventEndDate = content.getAttributeByName("endTime").getValue();
FacebookType postedEvent = getFbClient().publishObject(endPoint,
FacebookType.class, Parameter.with("name", eventName),
Parameter.with("start_time", Long.parseLong(eventStartDate)),
Parameter.with("end_time", Long.parseLong(eventEndDate)));
// update graph
String contentURL = URLUtils.makeContentURL(postedEvent.getId(), ContentTypeEnum.EVENT.name());
// fetch newly created object
Content newContent = getContent(contentURL);
// add object to graph