jsmrtn / craftagram

Grab Instagram content through the Instagram Basic Display API
Other
14 stars 8 forks source link

Confirming successful token refresh #49

Closed yuvi100 closed 2 years ago

yuvi100 commented 2 years ago

I've set up a cron job on my shared hosting - how do I confirm the token has refreshed?

Visting actions/craftagram/default/refresh-token returns 1.

When the cron job is run a file has been created on the shared host named refresh-token.1 that contains the same response 1.

jsmrtn commented 2 years ago

@yuvi100 You can check in /storage/logs/craftagram.log as to whether the refresh has succeeded or failed, as it logs out there when you run the refresh token.

As to your file being created, this is because when using wget in a cron you have to tell it to not output a file. See this StackOverflow post for an explanation, but speaking to your host would be the most suitable way to get your cron corrected.

yuvi100 commented 2 years ago

@joshua-martin perfect - can confirm it's all working. Appreciate the additional resource as well.