【发布时间】:2016-04-08 07:14:33
【问题描述】:
我在发布分数时使用的是 7.4 版 sdk,但出现此错误
score 发布到 fb{"error":{"message":"(#100) Param score 必须是整数","type":"OAuthException","code":100,"fbtrace_id":" ElqTb0bxXz4"}}
相关代码
var scoreData = new Dictionary<string ,string> ();
scoreData ["score"] = UnityEngine.Random.Range (10f, 500f).ToString();
FB.API("/me/scores?fields=",HttpMethod.POST,delegate(IGraphResult result){
Debug.Log("score posted to the fb"+result.RawResult.ToString());
},scoreData);
感谢任何建议或答案
【问题讨论】:
标签: facebook-graph-api unity3d facebook-unity-sdk