Ich benutze das Javascript SDK, um Punkte zu FB zu posten, aber es gibt mir Fehler ({error: {message: "(# 15) Diese Methode muss mit einer App access_token aufgerufen werden . "Typ:" OAuthException“, code: 15}}):Facebook Javascript SDK - Nicht in der Lage, Punkte zu posten
I accessToken kommen aus folgenden bin mit:
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;
Die Funktion i-Score bin mit werden.Dies ist folgende:
FB.api("uid/scores", 'post', {score: scoredata, access_token: accessToken },
function(response)
{
if (!response || response.error) {
console.error(response);
} else {
console.log(response);
}
});
Kann mir bitte jemand eine Idee geben, da fb ist fehlende Dokumente speziell für JAvascript.
Jacob
Nein, es ist nicht deswegen. –