@Okgo wrote:
I'm using the tutorial code but a few hours later
...
Hi @Okgo,
More precise the access token expires in 4 hours.
@Okgo wrote:
...
i wanna know how to fix it
You have to use refresh token in client object construction instead of access token. Unfortunately, you can not directly get refresh token as you can for access token (not yet, at least). Despite, you can get refresh token with few simple steps in terminal. For more info take a look here. 😉
Hope this helps.