me/accounts endpoint returns empty response for some users
Hello there!
We're facing an issue with some users where we can't get back their pages when requesting it throught /me/accounts endpoint, it will return an empty array even though the user has given the following permissions: pages_manage_engagement, pages_manage_metadata, pages_messaging, pages_read_engagement, pages_read_user_content, pages_show_list to several pages.
Request example:
https://graph.facebook.com/v13.0/me/accounts?access_token=TOKEN&fields=access_token,id,name,tasks
I even checked the debug token API and it lists several page ids for each of the permissions I've listed previously.
https://graph.facebook.com/debug_token?input_token=TOKEN&access_token=ACCESS_TOKEN
Here's a list of scopes we ask during the OAuth step:
"email,pages_manage_metadata,pages_read_engagement,pages_read_user_content,pages_manage_engagement,pages_messaging,pages_manage_posts"
That's what we've been asking since ever and it used to work until today, so I wonder if something has changed?
Thanks in advance.
Apparently this is due to extra permission needed business_management for page that's associate with a business account. See: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/nvc-2023#user-accounts
The only workaround without the permission is: 1. Unlink page from business account 2. Connect page with your application 3. Link page back with business account
I tried it and it works. Hopefully it helps.
Apparently this is due to extra permission needed business_management for page that's associate with a business account. See: https://developers.facebook.com/docs/graph-api/changelog/non-versioned-changes/nvc-2023#user-accounts
The only workaround without the permission is: 1. Unlink page from business account 2. Connect page with your application 3. Link page back with business account
I tried it and it works. Hopefully it helps.