我使用的JavaScript SDK發佈比分FB,但它給我的錯誤({錯誤:{消息:「(#15)這種方法必須調用的應用程序的access_token 「鍵入:」 OAuthException」,代碼:15}}):Facebook上的JavaScript SDK - 無法發佈得分
我使用的accessToken從下面來:
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
// the user is logged in and has authenticated your
// app, and response.authResponse supplies
// the user's ID, a valid access token, a signed
// request, and the time the access token
// and signed request each expire
uid = response.authResponse.userID;
accessToken = response.authResponse.accessToken;
我使用後分數的功能如下:
FB.api("uid/scores", 'post', {score: scoredata, access_token: accessToken },
function(response)
{
if (!response || response.error) {
console.error(response);
} else {
console.log(response);
}
});
任何人都可以請給出主意,因爲FB是特別爲JAvascript缺少文檔。
雅各
不,這不是因爲那樣。 – 2016-01-02 18:46:05