8000 App usage and rate limiting · Issue #136 · criso/fbgraph · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

App usage and rate limiting #136

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

Open
fredrikholmen opened this issue Jun 3, 2018 · 0 comments
Open

App usage and rate limiting #136

fredrikholmen opened this issue Jun 3, 2018 · 0 comments

Comments

@fredrikholmen
Copy link

I would like to keep track of the App Usage to not exceed the API rate limit. The response headers are lost in the module and it would be great if there we're a function to check what the current usage is.

A quick work around could be to just add in the data in the response if it's set.

if (res.headers.hasOwnProperty('x-app-usage')) {
      body = body.replace(/\}$/,',"appusage": ' + res.headers['x-app-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

1 participant
0