遊戲寫在Flash/as3上,我使用的是來自freshplanet的Facebook ANE。從iOS(閃存,空氣)應用程序發佈到Fb的分數問題
的調用完成這樣的:
var data:Object = new Object();
data.score = 300;
data.access_token = _facebook.accessToken;
_facebook.requestWithGraphPath("/me/scores", data, "POST", onScoreSubmitted);
結果是:所以
{"error":{"code":100,"message":"(#100) The parameter score is required","type":"OAuthException"},"accessToken":"CAAGN..."}
其他要求像_facebook.requestWithGraphPath("/me"...), _facebook.requestWithGraphPath("/me/picture.type(large)"...)
效果很好(返回所需的數據
我是(特別是錯誤類型)。謝謝你的幫助!
你確定,你可以更新的得分與'我/ scores'?嘗試建設'userId/scores' –
它看起來不像你做錯什麼 - 兩個文檔(https://developers.facebook.com/docs/graph-api/reference/user/scores/#publish)和圖形資源管理器(https://developers.facebook.com/tools/explorer)也是這樣說的。嘗試'_facebook.requestWithGraphPath(「/ me/scores」,{score:123},「POST」,onScoreSubmitted);' – divillysausages
@NicolasSiver/me將始終生成附加訪問令牌的單個UserID,所以這很好。 – Tobi