部分中斷share-external
Empty Data Array from Facebook Graph API /me/accounts Despite Valid Scopes and Access Token
5

Hello everyone,

I'm currently experiencing an issue with the Facebook Graph API when querying the /me/accounts endpoint. Despite having a valid access token and all the necessary scopes, the data array in the response remains empty.

Here’s an overview of the situation:

API Request:

curl -i -X GET \
  "https://graph.facebook.com/v20.0/me/accounts?fields=id%2Cname%2Caccess_token&access_token=<access token sanitized>"

Access Token Info:

{
  "perms": [
    "publish_video",
    "pages_manage_cta",
    "pages_manage_instant_articles",
    "pages_show_list",
    "read_page_mailboxes",
    "ads_management",
    "ads_read",
    "business_management",
    "pages_messaging",
    "pages_messaging_subscriptions",
    "instagram_basic",
    "instagram_manage_comments",
    "instagram_manage_insights",
    "instagram_content_publish",
    "page_events",
    "pages_read_engagement",
    "pages_manage_metadata",
    "pages_read_user_content",
    "pages_manage_ads",
    "pages_manage_posts",
    "pages_manage_engagement",
    "instagram_manage_events",
    "manage_app_solution",
    "public_profile"
  ],
  "user_id": "<USER_ID>",
  "app_id": <APP_ID>
}

API Response:

{
  "data": []
}

I have verified that: - The access token is valid and includes all the necessary scopes (e.g., pages_show_list, pages_manage_metadata, etc.). - The user associated with the access token does indeed manage Facebook Pages. - The app is in live mode and all necessary permissions have been requested and approved. - I've tried debugging using the Graph API Explorer, but the result remains the same: the data array is always empty.

Potential Cause:

I came across this documentation about "Tech Providers" and suspect that it could be related to restrictions placed on tech providers accessing data on behalf of clients. However, it's unclear if these restrictions are causing the empty data response or if something else might be at play.

My Question:

  • Could these tech provider restrictions be the reason for the empty response?
  • Is there something specific I need to verify or modify in the app settings related to these restrictions?
  • Are there any additional steps I should take to ensure access to the pages data through the API?

Any insights or guidance on how to resolve this issue would be greatly appreciated.

Thank you!

Olli
已發問 約 1 個月前
David

If you search the forums, there are multiple posts of people having this same problem. For me it started Friday some time. I found a post this morning that said adding: whatsapp_business_management

fixed the problem. And I did that and it did indeed start listing my accounts again. This is, of course, not documented anywhere, so I don't know how they figured that out, but now I am getting a code 100, Missing permissions, error while pulling ads information for some accounts (some are fine).

10月7日 07:40
Aaron

Unfortunately, I can't add whatsapp_business_management as it's not a product on our account. Hopefully FB fixes this soon. This is delaying needs on our end.

10月7日 08:22
已選擇的答案
1

It seems like they fixed it! For me it's working again - without any changes on my side.

10月8日 22:44
Olli