2015-11-27 87 views
-1

我正在學習使用Facebook的Javascript SDK進行網絡登錄。我與這個演示例子玩耍:https://gist.github.com/heldrida/6232556Facebook Javascript SDK登錄演示錯誤

不過,我得到試圖登錄時出現以下錯誤信息:

「無效的作用域:read_stream,publish_stream,read_friendlists此消息只顯示。開發你的應用程序將忽略這些權限(如果存在)的用戶請務必閱讀正文爲有效權限的文檔:https://developers.facebook.com/docs/facebook-login/permissions

能有人請解釋這是什麼意思?謝謝。

+0

這些權限已被刪除,它們在當前API版本中不再存在。 – CBroe

回答

0

Facebook上的應用程序必須提交給審覈小組以供應用程序請求列出這些許可。將來,如果您的應用需要他們,您必須提交該應用進行審批。該消息是相當直接的,顯示在人必須在應用角色對於現在用戶的警告,如果您的應用程序不需要它們,從FB.login()

function login() { 
     FB.login(function(response) { 

     // handle the response 
     console.log("Response goes here!"); 

     }, {scope: 'read_stream,publish_stream,publish_actions,read_friendlists'});    
    } 

刪除scope參數

function login() { 
     FB.login(function(response) { 

     // handle the response 
     console.log("Response goes here!"); 

     });   
    }