jeudi 26 février 2015

Can't query for multiple posts with likes count

I want to query Graph API for a set of posts (with ids of them). Let's assume i've got an array {firstId, secondId ...}. One way i've tried is:



v2.2/?ids=firstId,secondId...


Which works good as long as i dont want to get the likes/comments count summary through adding any "fields" param.



?fields=likes.limit(1).summary(true),comments.limit(1).summary(true)


Any ideas on how to merge ids with fields params in one request?


Aucun commentaire:

Enregistrer un commentaire