Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook API: manage_pages permission is not working

I want to pull the list of pages from an account by using my App. I took reference from https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.2

I have added few scopes "manage_pages, publish_stream, read_stream, publish_actions, publish_pages" to fb:login-button so that I can pull pages. I have added one more function

function getFacebookPages() {
   FB.api('/me/accounts', function( apiResponse ) {
       if( apiResponse && !apiResponse.error ) {
          console.log('For Facebook pages');
          console.log(apiResponse);
      }
  });
}

to pull pages, but it not pulling pages.

Please help me.

like image 976
Amit Avatar asked May 06 '15 05:05

Amit


People also ask

How do I set permissions on the Facebook app?

Tap in the top right of Facebook. Scroll down and tap Settings. Go to the Permissions section and tap Apps and Websites. Go to Apps, Websites and Games and tap Edit.

What permissions does Facebook need?

Facebook Login allows a person to grant only a subset of permissions that you ask for to your app, except for public profile, which is always required.

How do I remove Facebook API?

You can use a HTTP DELETE request with: From http://developers.facebook.com/docs/reference/api/user/#permissions: You can de-authorize an application or revoke a specific extended permissions on behalf of a user by issuing an HTTP DELETE request to PROFILE_ID/permissions with a user access_token for that app.


1 Answers

For permissions that aren't the default ones ( email, public_profile, user_friends ) you need in 'Status & Review'(from the menu in your app dashboard) to make a submission for them.

Until your review is completed you could create in your app a TEST app at 'Test Apps' ( again, from the menu in your app dashboard ). If you code using the ids of an test app you don't need the submission for permissions, just specify them in the scope.

This must work, please give more details if doesn't works

like image 83
Răducanu Ionuţ Avatar answered Sep 21 '22 11:09

Răducanu Ionuţ