summaryrefslogtreecommitdiff
path: root/bin/fb-user-token.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-08-20 00:13:59 +0200
committeremkael <emkael@tlen.pl>2018-08-20 00:14:10 +0200
commitffdb7c01afa541e6e8e0901f361827475a141108 (patch)
tree4c704f8bc0f8e0175ebf4d3670fe7b7ea1d35b8c /bin/fb-user-token.php
parent123dca48b8ea1c16f58ad07cbca6f507e2c2c66d (diff)
Updating FB token
Diffstat (limited to 'bin/fb-user-token.php')
-rw-r--r--bin/fb-user-token.php2
1 files changed, 1 insertions, 1 deletions
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')));
}