2015-11-27 81 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!"); 

     });   
    }