facebook - How to determine if a comment has been edited using RestFB? -


i implementing process comments made user recursively. in subsequent iterations use date of last poll new comments.

private stream<comment> getcommentsbyobjectafterthan(final facebookclient facebookclient, final string objectid, final date startdate, user user) {          connection<comment> commentconnection             = facebookclient.fetchconnection(objectid + "/comments", comment.class,                      parameter.with("fields", "id, comment_count, created_time, from, message, like_count"));          return streamutils.asstream(commentconnection.iterator())                 .flatmap(list::stream)                 .flatmap(comment                          ->  {                              logger.debug("comment -> " + comment.getmessage() + " created time : " + comment.getcreatedtime());                              return comment.getcommentcount() > 0 ? streamutils.concat(                                     getcommentsbyobjectafterthan(facebookclient, comment.getid(), startdate, user), comment) :                                          stream.of(comment);                         }                 ).filter(comment -> !comment.getfrom().getid().equals(user.getid()) &&                         (startdate != null ? comment.getcreatedtime().after(startdate) : true));     } 

how detect if comment has been edited? save independently of previous one. possible? comment type has createdtime property not updatedtime. additionally, post type has updatedtime property indicating new comment has been added.

does know approach can take? in advance.


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -