I developed a custom app to upload videos that will be used in a contest, the video with the most likes wins. Is there a way to keep track of these likes without further user intervention? I mean, the user uploads the video now, with a “like counter” thing, and the day the contest ends, I just query the most liked (o three most liked) video(s). Is there a way to do this?
Share
You can get the likes for all the videos with FQL, then get the counts in your app code:
SELECT object_id FROM like WHERE object_id IN (YOUR, VIDEO, IDS)Or if you have the post_ids instead of the video object_ids:
SELECT post_id FROM like WHERE post_id IN (YOUR, POST, IDS)