FQL count (*) Javascript SDK no funciona

I use a fql request to find all my friends who use my application and want to see my film. I use this request :

    method: "fql.query",
    query: "SELECT actor_id FROM stream WHERE app_id = MYAPPID and source_id = "+friend.id+" and attachment.name = 'MYFILMNAME'"},
    function (responseFQL) {

This returns all friends ids. But i want to count the number of results, how can i do simply ? I can't use count(*) in FQL ?

Gracias !

preguntado el 31 de julio de 12 a las 11:07

you well need to count after the query. for more details: stackoverflow.com/questions/3527518/… -

Thanks, but i cant see a request which works to count my queries. I did that for the moment : SELECT friend_count FROM user WHERE uid IN (SELECT source_id FROM stream WHERE source_id = me() and app_id = "+APP_ID+" and attachment.name = 'FILM') But of course its not that i want... I want the number of my friends who saw the film with the application... its a hard request.. -

1 Respuestas

You can't use COUNT in FQL, it's not supported. Why don't you get the data and perform the count operation on your end ?

Respondido 29 ago 12, 22:08

I want to show only count at some place. But data is required at next page. So i don't want to get data when only count is required. Can you give some suggestions how to get count ? - Joya

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.