简体   繁体   中英

Facebook Javascript SDK Login Demo Error

I am learning to use Facebook's Javascript SDK for web login. I am playing around with this demo example: https://gist.github.com/heldrida/6232556

However, I get the following error message when trying to log in:

"Invalid Scopes: read_stream, publish_stream, read_friendlists. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at:https://developers.facebook.com/docs/facebook-login/permissions "

Can someone please explain what this means? Thanks.

Apps on Facebook must be submitted to Review Team for the app to request these permission listed. In future, if your app requires them, you must submit the app for approval. The message is pretty straight forward, the warning is shown on users whom have roles in the app For now, if your app doesn't need them, remove scope argument from 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'});            
    }

to

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

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

        });          
    }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM