cómo obtener de manera eficiente todos los user_likes de los comentarios de un feed con graph api o fql

When I'm getting one feed and all his comments, I query each comment id with : 170169929672639_320612368034130_1646407?fields=user_likes, to know if the current user likes the comment.

Is there a way to get all feed\comments (well not ALL, but the next group of comments) with the user_like field for each comment in one request (batch request/multy query fql/other)?

Gracias de antemano.

preguntado el 28 de agosto de 12 a las 10:08

1 Respuestas

The field expansion update to the Graph API will let you get all the likes for all comments on a feed - USER_ID?fields=name,feed.fields(comments.fields(likes)).
Link - https://developers.facebook.com/docs/reference/api/field_expansion/

Respondido el 01 de Septiembre de 12 a las 00:09

Hi :) Just came to answer my own question after I saw the field expansion update. And after playing with it, It also works without field expansion. just small note, the like field of the comment is user_likes. I use it like this and it gets all likes of the current user for each comment in the feed : FEEDID/comments?user_likes&limit=30 Thanks. - user1105951

OR : FEEDID?fields=comments.fields(id,from,message,user_likes) - user1105951

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