Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with assigned_ad_accounts API #628

Open
Chaitanya1010 opened this issue Feb 27, 2023 · 2 comments
Open

Problem with assigned_ad_accounts API #628

Chaitanya1010 opened this issue Feb 27, 2023 · 2 comments

Comments

@Chaitanya1010
Copy link

Chaitanya1010 commented Feb 27, 2023

Hi all,
I'm trying to make a call to the assigned_ad_accounts API, with

fields = [AdAccount.Field.id]
params = {summary: true, limit: 1000}
resp = SystemUser(system_user_id, api=fb_api).get_assigned_ad_accounts(
                        fields=fields,
                        params=params)

I'm getting the error response

 Status:  500
  Response:
    {
      "error": {
        "code": 1,
        "message": "Please reduce the amount of data you're asking for, then retry your request"
      }
    }

I tried with lesser and more limit values but got the same issue in every run. This has been happening over the past 2-3 weeks. I'm currently using v14, but this issue is happening with v15 and v16 too.

However, I'm able to receive a response for this API request successfully from Postman and FB graph API explorer (saved session link), but it's not working with this SDK

Does anyone know why this is happening or having the same problem?
Thanks

@Chaitanya1010
Copy link
Author

Update:

When the initial call is made, the graph explorer and the postman are giving successful responses, but when we are using the pagination and querying for the next pages, we are running into the same issue (even with a lesser limit). Please check the saved session here

@stcheng
Copy link
Contributor

stcheng commented Apr 13, 2023

@Chaitanya1010 sorry i can't open your saved session here. if possible, could you submit a case through our support channel (https://developers.intern.facebook.com/support/)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants