I'm using game maker to develop the game.
In the Graph API Explorer, on facebook, it shows me the map like this (when I call a graph app/scores:
{
"data": [
{
"score": 9,
"user": {
"id": "100001473840881",
"name": "Mariano Suppa"
}
},
{
"score": 4,
"user": {
"id": "1299843969",
"name": "Francisco Bernardou"
}
},
{
"score": 0,
"user": {
"id": "100004105612351",
"name": "Fnatic Fnc"
}
}
]
}
The "user" key is detected fine, with ds_map_exists(friendMap,"user"). It's okay because exists in the graph explorer, and his name is "user".
But in the graph explorer, it also shows me "score" Score is not a map itself I think, like user (who has id and name keys inside). The problem is the ds_map_exists(friendMap,"score") gives me "false".
So... why doesn´t read "score", but yes "user"?
I also tried reading "score" using ds_map_next(friendMap,currentKey) to go to "score" from "user", but it doesnt read "score".
I don't know how to read the score, I've tried a lot of things but no solutions.