V
V
Vitaly Slyusar2019-02-01 10:11:06
Facebook
Vitaly Slyusar, 2019-02-01 10:11:06

How to remove the error Invalid Scopes: publish_actions when authorizing through Facebook?

An error occurred while logging in with facebook on the site

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

I know that Facebook with the release of api version 3 began to board the old one.
But perhaps there is a way around this error? If yes, then I ask for hints.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Slyusar, 2019-02-01
@slusarvitaliy

I already found it myself
in the methods:

FB.login(function(response) {
            if (response.status === 'connected') {
                $rootScope.getLoginFb(response);
            } else if (response.status === 'not_authorized') {
                // The person is logged into Facebook, but not your app.
            } else {
                // The person is not logged into Facebook, so we're not sure if
                // they are logged into this app or not.
            }
          },{scope: 'publish_actions,email'});

and
FB.login(function(response) {
            if (response.status === 'connected') {
                $rootScope.getLoginFb(response);
            } else if (response.status === 'not_authorized') {
                // The person is logged into Facebook, but not your app.
            } else {
                // The person is not logged into Facebook, so we're not sure if
                // they are logged into this app or not.
            }
          },{scope: 'publish_actions,email'});

remove publish_actions from scope

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question