[英]Facebook Javascript SDK: Error validating access token when posting to feed
我正在嘗試從我的網站實施發布到用戶的供稿。 我正在使用Javascript SDK,並設法使自己登錄,並同時授予了publish_stream和publish_actions權限。 但是,當我調用/ me / feed post操作時,得到以下錯誤作為響應:
code: 190
error_subcode: 467
message: "Error validating access token: This may be because the user logged out or may be due to a system error."
我從這里使用客戶端身份驗證模型:
https://developers.facebook.com/docs/authentication/client-side/
這是我正在使用的FB.api提要郵政編碼:
FB.api('/me/feed', 'post', { message: 'Testing FB feed posting' }, function(response) {
if (!response || response.error) {
alert('Error');
console.log(response);
}
else {
alert('Posted');
}
});
我已經檢查了應用程序設置,域設置正確。 我還仔細檢查了我是否有權執行此信息。 誰能看到我要去的地方嗎?
任何幫助將非常感激。
嘗試檢查FB.getLoginStatus(function(response){//在這里做代碼});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.