Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Facebook SDK - “FB.API” not saving or loading score values

$
0
0
Based on the code provided by the official Facebook Unity project, I cannot save nor load a score value. I receive no error or message whatsoever - A value of 0 is always returned when I attempt to retrieve the score.

I save the player's score like this:

Code (csharp):
  1. public void SaveScore(int _score)
  2. {
  3.     _fbScore = _score;
  4.  
  5.     var _query = new Dictionary<string, string>();
  6.     _query["score"] = _fbScore.ToString();
  7.  
  8.     FB.API("/me/scores", Facebook.HttpMethod.POST, delegate(FBResult...
Facebook SDK - “FB.API” not saving or loading score values

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>