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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With