summaryrefslogtreecommitdiff
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
parent123dca48b8ea1c16f58ad07cbca6f507e2c2c66d (diff)
Updating FB token
-rw-r--r--bin/fb-user-token-expiry2
-rw-r--r--bin/fb-user-token.php2
-rw-r--r--config/facebook.jsonbin314 -> 323 bytes
3 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')));
}
diff --git a/config/facebook.json b/config/facebook.json
index 505e0ab..a7e8277 100644
--- a/config/facebook.json
+++ b/config/facebook.json
Binary files differ