Facebook API: manage_pages permission not working

I want to list pages from my account using my application. I referred to https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.2

I added several areas of manage_pages, publish_stream, read_stream, publish_actions, publish_pages "in fb: login-button so that I can pull out pages. I added another 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 not stretch the pages.

Please help me.

+6
source share
1 answer

For permissions that are not standard (email, public_profile, user_friends), you need to specify "Status and View" (from the menu in the application panel) to do for them.

Until your review is completed, you can create a TEST application in "Test Apps" in your application (again, from the menu in the application toolbar). If you are encoding test application identifiers, you do not need a pass for permissions, just specify them in the area.

This should work, please give more details if it doesn’t work.

+11
source

Source: https://habr.com/ru/post/986629/


All Articles