freshplanet / ANE-Facebook

Air Native Extension (iOS and Android) for the Facebook mobile SDK
Apache License 2.0
221 stars 123 forks source link

{"code":400,"body":{"error":{"type":"OAuthException","code":100,"message":"(#100) Param score must be a number"}},"accessToken":"CAAVZ...."} #142

Closed nitacawo closed 7 years ago

nitacawo commented 10 years ago

I am having trouble to POST score parameter

var ogObject:Object = {score:5000}; Facebook.getInstance().requestWithGraphPath("/me/scores",ogObject,"POST", errorHandler); Returns error: {"code":400,"body":{"error":{"type":"OAuthException","code":100,"message":"(#100) Param score must be a number"}},"accessToken":"CAAVZ...."}

while GET score works fine Facebook.getInstance().requestWithGraphPath("me/scores",null,"GET",errorHandler);

Help would really be appriciated,I am stuck for hours searching and trying different variants :(

nitacawo commented 10 years ago

figured it out. If someone gets stuck as I did var ogObject:Object = {score:"5000"}; Facebook.getInstance().requestWithGraphPath("/me/scores",ogObject,"POST", errorHandler);