Facebook api: show dialog for user select page (manage_pages extendend perm)

I want no user to provide the extended pemission of the manage_pages application, but I want my users to be able to choose which of their pages they give permission to.

I have this code that is responsible for authentication and gets user permissions:

$('#btn-connect-facebook').click(function(){ FB.login(function(response) { if (response.session) { if (response.perms) { -> //new popup window for select which page it gives permissions// //window.location = (...) // redirect to php page } else { alert("You need to grant the required permissions"); } } else { alert("There was an error connecting to facebook"); } }, {perms:'manage_pages,publish_stream,read_stream,create_event,offline_access'}); }); 

How can I get the user to choose on which page he wants to give permissions? I tried adding enable_profile_selector, but it messed up with my perms (the dialog does not ask for all the necessary permissions.

thanks for the help

+2
source share
1 answer

The only permission a user can grant a page is publish_stream permission. All other permissions are user permissions. For example, they cannot be selected / configured for pages. The manage_pages permission is all or nothing. Either the user allows (all) access to the pages, or not by providing this permission for the application.

+2
source

All Articles