Facebook graph api Facebook分数更新发布行动
我有以下代码来更新用户的分数:Facebook graph api Facebook分数更新发布行动,facebook-graph-api,post,action,Facebook Graph Api,Post,Action,我有以下代码来更新用户的分数: FB.api("USERID>/scores", 'POST', {score: currentScore, access_token: "APP_ACCESS_TOKEN"}, function(response){ if (!response || response.error) {console.error(response);} else { console.log(response);} } ); 同样的代码在我以前
FB.api("USERID>/scores", 'POST', {score: currentScore, access_token: "APP_ACCESS_TOKEN"},
function(response){
if (!response || response.error)
{console.error(response);}
else { console.log(response);}
}
);
同样的代码在我以前的应用程序中运行良好。但这一次,即使我得到了真实的响应率,也没有更新分数。我还尝试通过直接链接(如下所示)发布分数,以便在代码出现问题时进行交叉检查
https://graph.facebook.com/USER_ID/scores?score=USER_SCORE&access_token=APP_ACCESS_TOKEN
我得到的结果如下:
{
"data": [
{
"user": {
"name": "Harsh",
"id": "xxxxx"
},
"score": 0,
"application": {
"name": "xxxxxxxx",
"canvas_name": "xxxxxxxxx",
"namespace": "xxxxxxxxxx",
"id": "xxxxxxxxxx"
}
}
]
}
据我所知,这是阅读成绩的结果。有人能帮我找到我错的地方吗
供参考:
1.我正在传递应用程序访问令牌
2.我的应用已注册为游戏
3.我正在申请出版许可