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

How to handle rate-limits on error? #190

Open
Tobjoern opened this issue Dec 3, 2022 · 1 comment
Open

How to handle rate-limits on error? #190

Tobjoern opened this issue Dec 3, 2022 · 1 comment

Comments

@Tobjoern
Copy link

Tobjoern commented Dec 3, 2022

When calling the api via app.api(x, y, z), and an error occurs due to rate limiting (https://developers.facebook.com/docs/graph-api/overview/rate-limiting),
one should be able to inspect the X-App-Usage or X-Ad-Account-Usage header, but I don't see them in the headers.

@dantman
Copy link

dantman commented Dec 3, 2022

Try getAppUsage to get the last X-App-Usage. I don't think the code currently handles Ad-Account-Usage.

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