tags:

views:

193

answers:

2

How to get how many times specific object was liked?
Answer: http://developers.facebook.com/docs/reference/fql/link_stat

and

How to get the most liked links in my application?

UPD 3: another question then: how to get the object_id for given liked page
Answer: object_url fql table

+2  A: 

You can use a SQL (FQL) query and then count the users who liked the object. Heres information on the query: http://developers.facebook.com/docs/reference/fql/like

omizzle
yeah, i did it and it always return nothing
zerkms
What does the code you are using to do this look like?
omizzle
@omizzle: i took the query sample from the page you pasted `SELECT user_id FROM like WHERE object_id="122706168308"` and tried to quyery it on http://developers.facebook.com/docs/reference/rest/fql.query
zerkms
thanks, i got the user list. is it possible now to count them?
zerkms
If its an array then you simply count the items (ids) in the array.
omizzle
@omizzle: and if it is 200k of users there? :-S
zerkms
You will still have to count through the separate items in that array with whatever programming language you are using. There should be different methods to do so efficiently in the language.
omizzle
A: 

i did the same but i get an empty array ??? SELECT user_id FROM like WHERE object_id="122706168308" http://developers.facebook.com/docs/reference/rest/fql.query

ophir

related questions