我在我的代碼中的FQL查詢,直到上週(左右)完美工作,然後突然停止工作。FQL錯誤803突然顯示出來
我現在越來越奇怪#803錯誤以及消息「您請求的某些別名不存在:」這是特殊的(我相信是一個總的紅鯡魚),因爲我現在已經嘗試刪除所有我以前的別名,並用「名稱」替換它們。
完全在我的繩子結束試圖弄清楚Facebook上改變了過去幾周,將是造成這個的。如果有人有任何見解,我會非常感激聽到它。
我在這裏發佈我的代碼,但我沒想到的代碼本身的任何評論看到它如何在過去兩週左右的時間內完美地工作了好幾個月,直到某一點。
代碼的具體目的是爲取得用於用戶的身份驗證令牌,然後檢索一些更詳細的信息不可用的/我請求。
//I call this first to get the token
function checkStatus() {
try{
FB.getLoginStatus(function(loginResponse){
if(loginResponse.status == "connected"){
authToken = loginResponse.authResponse.accessToken;//this comes back as expected
expiresIn = loginResponse.authResponse.expiresIn;//this comes back as expected
getUserInfo();
} else {
registerApp();//this gets called if the user hasn't approved the app yet... this continues to work as expected
}
});
}
catch(e){
alert("ERROR" + e);
}
}
//so the above method calls this
function getUserInfo(){
FB.api("/me", function(meResponse){
meResponse.authToken = authToken;
meResponse.expiresIn = expiresIn;
console.log("meResponse = " + JSON.stringify(meResponse));
//this contains all the correct expected data
FB.api(escape("/fql&q=SELECT name FROM user WHERE uid = '"+ meResponse.id +"'"),//here I've eliminated ALL extra aliases (though none of them were a problem before
function(response){
console.log("RESP = " + JSON.stringify(response)); //this comes back with the following error:
//{"error":{"message":"(#803) Some of the aliases you requested do not exist: fql&q=SELECT name FROM user WHERE uid = 'xxxxxxxxx'","type":"OAuthException","code":803}}
}
)
});
}