LOG.info("Start getTime");
Long time = null;
if (mentionId != null) {
Post p = facebookClient.fetchObject(mentionId, Post.class);
if (p == null) {
Comment c = facebookClient
.fetchObject(mentionId, Comment.class);
if (c == null) {
LOG.info("Facebook object [" + mentionId
+ "] is not a valid post/comment");
} else {
LOG.info("Facebook object [" + mentionId + "] is comment");
time = c.getCreatedTime() == null ? null : c
.getCreatedTime().getTime() / 1000L;
}
} else {
LOG.info("Facebook object [" + mentionId + "] is post");
time = p.getCreatedTime() == null ? null : p.getCreatedTime()