@benjamin-hull thanks for the great work on the instagram-token-agent. I needed a quick solution to refresh instgram tokens at minimum cost for a small private project and stumbled upon this repo.
I did that in haste so nothing fancy but it does the job. Of course plenty of room for improvements but that all I can do for now 😅 I didn't notice at first however Heroku Scheduler jobs can't be set to something longer than a daily schedule (kinda short for the long-lived tokens with a validity of 60 days). Also I left memcachier config as it is, so hopefully the token won't be cached for too long.
You may want to merge that in a different branch as I didn't spend much time testing.
@benjamin-hull thanks for the great work on the instagram-token-agent. I needed a quick solution to refresh instgram tokens at minimum cost for a small private project and stumbled upon this repo.
As you may know the Temporize add-on is not free anymore on Heroku and I found https://github.com/companionstudio/instagram-token-agent/issues/33 and https://github.com/companionstudio/instagram-token-agent/issues/39 related to this particular topic. For this reason, I implemented Heroku Scheduler (Free Tier) instead of Temporize in the project.
So here a quick summary of what I changed:
I did that in haste so nothing fancy but it does the job. Of course plenty of room for improvements but that all I can do for now 😅 I didn't notice at first however Heroku Scheduler jobs can't be set to something longer than a daily schedule (kinda short for the long-lived tokens with a validity of 60 days). Also I left memcachier config as it is, so hopefully the token won't be cached for too long.
You may want to merge that in a different branch as I didn't spend much time testing.