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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -