samedi 18 avril 2015

Should I use FB.API to store player save game information?

I'm prototyping a game using the FB.SDK and Unity3d (v5.0).


While working through the tutorials on Facebook about how to use the SDK I found the use of this code slightly confusing: FB.API("/me/scores", HttpMethod.POST, OnUserInfoSaved, scoreData);


I am wondering why this is specifically referred to as "scores". Surely this can be any information I wish to store as part of this user's information?


In designing this game, the thought has occurred to me that I might just serialise the player's game information and send it up to Facebook using the API. Is this the intended use for that call or is there some reason to not do it that way?


Aucun commentaire:

Enregistrer un commentaire