-
Notifications
You must be signed in to change notification settings - Fork 70
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
Token gets invalid #5
Comments
I have experienced a similar issue this morning. I've been getting this console error: api request error: 4 Application request limit reached Sorry to hihjack your question Preg, just thought it would be nice to kill two birds with one stone. |
@benjamin-hull any idea when you will be able to take a look into this? |
Hi @awoodford - I think your issue is a separate one (hitting the API request limit). There's a fairly simple workaround on the FB/IG side - I put some details in the wiki: https://github.com/companionstudio/instagram-token-agent/wiki/Instagram-API-Limits |
@PregOfficial, that's an interesting one. If you have help pages enabled on your app (they are enabled by default), you should be able to visit Would you check that page and report back what it says? |
Hi @benjamin-hull thanks for your reply. I've add 2 new testers to the app but still seeing the same issue. I am also seeing this message on the Heroku app page now: Any ideas? Thanks |
Thanks for your reply @benjamin-hull, it was my fault. I assigned a short lived token instead of a long lived. This one expired after an hour and didn't refresh. |
@awoodford I wrote a detailed instruction for me, how to set up the token and the token agent. If you want, I can share it with you. |
@PregOfficial Thank you that would be great - it would be interesting to see. Although i've not had any issues setting it up it just hits the API call limit and adding new test users didn't fix that. Either way that would be very much appreciated thank you :) |
This is my instruction to set up the token and the agent
Use the long-lived access token to set up the agent. Hope this helps |
@PregOfficial Thats awesome thank you! |
Hey guys - and thanks @PregOfficial! There is a simpler method to replace steps 5-8, and you can get a long-lived token directly from the app dashboard, with instructions here: https://developers.facebook.com/docs/instagram-basic-display-api/overview#user-token-generator |
@benjamin-hull that's how i've done it. I've added 2 new testers and still getting the same issue. Removing the main tester account (where I'm getting the images from) and adding it again get's it working again. Any ideas? |
@benjamin-hull - with the facebook instructions my token turned invalid, but with the more complex method it worked. |
Okay - so re-reading the documentation, I understand now that the 'adding extra users' workaround will not work, because the Basic Display API uses User Access Tokens, rather than Application Access Tokens which use a shared pool. Unfortunately, according to the docs, user-level call limits are not a hard, published number:
So - this leaves us with a problem. The Basic Display API always authorizes as a single user, and that user has a limited but unknown number of calls they can make per hour. The 'real' answer to this issue (and I think the one Facebook/Instagram intends people to use), is to process these requests server-side, and cache the results before delivering them to user's browsers. That way the number of requests is I will check in with a contact at Facebook to see if there's any other possible solution. |
After a certain time my token turns invalid and doesn't refresh. Do I have to configure something in the Facebook Developer Console (something like the Valid OAuth Redirect URIs)?
The text was updated successfully, but these errors were encountered: