java - Can not get like of count in restfb -
i'm getting trouble how count of in post , getcommentcount() same problem. i'm try :
post post = facebookclient.fetchobject("1019734961433937", post.class); long = post.getlikescount(); system.out.print(like);
but it's give me result 0 . how can fix
thanks in advance .
you need fetch likes , comments object post.
if need count can filter , ask summary:
post.likes likes = fbclient.fetchobject(post.getid() + "/likes", post.likes.class, parameter.with("summary", 1), parameter.with("limit", 0)); long likestotalcount = likes.gettotalcount(); post.comments comments = fbclient.fetchobject(post.getid() + "/comments", post.comments.class, parameter.with("summary", 1), parameter.with("limit", 0)); long commentstotalcount = comments.gettotalcount();
Comments
Post a Comment