diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/fb-user-token-expiry | 2 | ||||
-rw-r--r-- | bin/fb-user-token.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/fb-user-token-expiry b/bin/fb-user-token-expiry index dba22ad..7d67c23 100644 --- a/bin/fb-user-token-expiry +++ b/bin/fb-user-token-expiry @@ -1 +1 @@ -2018-05-25
\ No newline at end of file +2018-08-19
\ No newline at end of file diff --git a/bin/fb-user-token.php b/bin/fb-user-token.php index 3aeb8aa..02aea74 100644 --- a/bin/fb-user-token.php +++ b/bin/fb-user-token.php @@ -31,7 +31,7 @@ if (!file_exists($expiryFile) || trim(file_get_contents($expiryFile)) == date('Y fwrite(STDERR, 'FB API token renewed, expires on: ' . date('Y-m-d H:i:s', strtotime('+' . $secondResponse->expires_in . ' seconds')) . PHP_EOL); file_put_contents($configFile, json_encode($config)); - file_put_contents($expiryFile, date('Y-m-d', strtotime('+' . $secondResponse->expires_in . ' seconds'))); + file_put_contents($expiryFile, date('Y-m-d', strtotime('+' . ($secondResponse->expires_in - 1440) . ' seconds'))); } |