Forum

Facebook likes counter

Hello:) Is there a way to parse an xml file from facebook’s api ( https://api.facebook.com/method/fql.query?query=select%20%20like_count%20from%20link_stat%20where%20url=“http://mypage.com” ) in order to get page’s likes count? Or maybe there is a better option to get like counts in vvvv? Couldn’t manage to process url with HTTPget node
Thanks in advance!

Hi!

By appending &format=json to your fql query you’ll get a JSON object:

[{"like_count":44}]({"like_count":44})

A bit of string magic and voila:

See my attached patch!

facebook_like_count.v4p (8.3 kB)

Thanks a lot!

You’re welcome. Just a short note: This is not proper parsing, just a “dirty” way to extract the desired information. But hey, it work’s, and that is probably all that you want.