views:

14

answers:

0

Good news everyone! Facebook fixed the /likes in Graph API. /Likes now returns the complete list of user's that liked a particular object in the graph (Photos, Albums, etc). In before, it returns only 3 - 5 users.

My question is, how do you count the total number of "likes" without parsing the entire JSON and getting the element count? I'm only interested in the "likes" count; I'm not interested in the users who gave the likes.

It seems a little expensive to get the entire JSON dataset just to count.

EG: https://graph.facebook.com/161820597180936/likes

This photo has like 1,000+ likes.

Thanks!