Login with Facebook - I can’t login to the app itself with the Facebook account

Asked

Viewed 301 times

0

I have a website, where I included login for users, using the facebook API.

Everyone can login normally, but my Administrator login of the application I created for login does not enter, IE, only login that does not work is my application administrator.

The following error is shown after I click on "Enter":

Invalid Scopes: publish_stream. 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

In my code, I do not request this permission from the API, as follows:

function fb_login(){
    FB.login(function(response) { statusChangeCallback(response); }, {
        scope: 'publish_stream,email'
    });
}

Because my login is the only one that doesn’t log in ?

Is there any release to be made within the application on facebook ?

Obs.: The app has "public status".

"This app is public and available to all users"

I appreciate any help I can get

1 answer

1


Permission publish_stream no longer exists. If you need to post on behalf of the user, use publish_actions. Only developers can see permission errors, which is why you’re the only one who can’t login. It’s like facebook is saying, "hey, developer, fix this!". In the case of users, the error is ignored.


If you don’t need to publish on behalf of the user, use:

function fb_login(){
    FB.login(function(response) { statusChangeCallback(response); }, {
        scope: 'email'
    });
}

If you must, use:

function fb_login(){
    FB.login(function(response) { statusChangeCallback(response); }, {
        scope: 'publish_actions,email'
    });
}
  • Alexandree, thank you for your help. It was a simple and well explained help!!! It worked right, once again, thank you !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.