我想從JavaScript SDK提交評分。 這是我當前的嘗試:如何從Facebook JavaScript SDK發佈評分
FB.api("/me/scores", 'post', {score: seconds, access_token: FB.getSession().access_token}, function(response){
if (!response || response.error) {
console.error(response);
} else {
console.log(response);
}
});
我得到的錯誤信息:
(#15) This method must be called with an app access_token.
因爲我傳遞的訪問令牌,爲什麼不這項工作?
謝謝。
你確定FB.getSession()。access_token返回一個值嗎? – bkaid