I am developing an android game and i am trying to use Facebook's graph Api to create a leaderboard for my android game integrated. how can is post my score in game to facebook ?
here, i'm trying to call following facebook graph url.
but i have getting following response, but it contains my old score every time.
{
"data": [
{
"user": {
"id": "1000055754xxxxxxx",
"name": "Sumit Paxxxxxxxxx"
},
"score": 2029,
"application": {
"name": "Cute",
"namespace": "cute",
"id": "4644172702xxxxxx"
}
}
]
}
You need to do a POST request instead of a GET one. See:
Sample:
POST /me/scores
with the following body:
score=2200
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.