diff options
author | emkael <emkael@tlen.pl> | 2018-08-20 00:13:59 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-08-20 00:14:10 +0200 |
commit | ffdb7c01afa541e6e8e0901f361827475a141108 (patch) | |
tree | 4c704f8bc0f8e0175ebf4d3670fe7b7ea1d35b8c /bin | |
parent | 123dca48b8ea1c16f58ad07cbca6f507e2c2c66d (diff) |
Updating FB token
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'))); } |