facebook api, getting comment likes, not just like_count -
using facebook graph api explorer, trying 'likes' comment in public group. request using is
->/v2.1/340032752841177?fields=feed{message,comments{likes,message,from,like_count}}
where 340032752841177 grouping id. tool accepts request ok, quietly doesn't homecoming 'likes' list on comments:
"comments": { "data": [ { "message": "henry's comment.", "from": { "id": "830700716960157", "name": "henry carmichael" }, "like_count": 1, "id": "340035706174215" } ],
i have expected likes list appear in dictionary above.
in question learned can likes of single comment this:
->/v2.1/340032752841177_340035436174242_340035706174215/likes "data": [ { "id": "10152551090402608", "name": "charlie burns" } ],
where 340032752841177_340035436174242 post id , 340035706174215 comment id.
the problem approach have request each comment , parsing big facebook grouping many comments.
is there way 'likes' of comments without having each comment individually? thanks.
no cant list of likes comments 1 call, number of them.
if seek running ->/v2.1/340032752841177/feed?fields=comments.summary(true)
can fields can returned comments endpoint. sample response is:
"comments": { "data": [ { "id": "340035706174215", "from": { "id": "830700716960157", "name": "henry carmichael" }, "message": "henry's comment.", "can_remove": false, "created_time": "2014-10-06t15:21:55+0000", "like_count": 1, "user_likes": false } ]
as see there no total list of likes , comments endpoint isn't returning more inforamtion. all.
futhermore can check graph api explorer. here screenshot of available fields in comments endpoint:
as see there not "likes_list" field, 1 time again there no way can list of likes comments.
the solution 1 suggesting. 1 request each comment
facebook-graph-api
No comments:
Post a Comment