Is sending Graph api with params work correctly?

Hi,

Right now, i try to get all user scores to make a leaderboards, but when i try to limit it it didn’t work as i expected. My code:

FBAPIParam params;
std::string url = “809510459155475/scores”;
params[“fields”] = “score”;
params[“limit”] = “4”;
PluginFacebook::api(url, “GET”, params, GET_ALL_SCORE);

and here is what it response:

##FB onAPI: tag -> all_score, json -> {“data”:[{“user”:{“id”:“100297293726013”,“name”:“Mary Test”},“score”:700},{“user”:{“id”:“114478672295798”,“name”:“Bill Test”},“score”:400},{“user”:{“id”:“127382894356387”,“name”:“Peter Test”},“score”:324},{“user”:{“id”:“118924908537700”,“name”:“Anna Test”},“score”:322},{“user”:{“id”:“116659595431607”,“name”:“BBB”},“score”:213},{“user”:{“id”:“105170649916849”,“name”:“AAA”},“score”:153},{“user”:{“id”:“121697948261418”,“name”:“CCC”},“score”:121},{“user”:{“id”:“110630486036426”,“name”:“DDD”},“score”:116},{“user”:{“id”:“105232676577222”,“name”:“EEE”},“score”:65}],“api”:“myAppid/scores”,“debug”:{}}

Did i do anything wrong? do you have any suggestion

Hi all,

Do anyone have ideas about this problem??

Seems score api dosen’t have limit param, https://developers.facebook.com/docs/graph-api/reference/v2.8/user/scores