summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-11-23 16:06:04 +0100
committeremkael <emkael@tlen.pl>2017-11-23 16:06:04 +0100
commit3c7dddf36276bf244249e4b733763cb1589b083f (patch)
treef517b839c69b6fa550f027c561e318b661ef6194
parent5de9b7b1fb0c2f68f11e0f0159bdaa6691508053 (diff)
New FB token + new renewal setup
-rw-r--r--_cron/fb-user-token2
-rw-r--r--bin/fb-user-token.php1
-rw-r--r--config/facebook.jsonbin353 -> 336 bytes
3 files changed, 2 insertions, 1 deletions
diff --git a/_cron/fb-user-token b/_cron/fb-user-token
index d2cb04d..007c9c7 100644
--- a/_cron/fb-user-token
+++ b/_cron/fb-user-token
@@ -1 +1 @@
-25 9 10,20 * * $SITEPATH/bin/fb-user-token.sh
+25 9 4,14,24 * * $SITEPATH/bin/fb-user-token.sh
diff --git a/bin/fb-user-token.php b/bin/fb-user-token.php
index c78abfc..943bf4c 100644
--- a/bin/fb-user-token.php
+++ b/bin/fb-user-token.php
@@ -26,5 +26,6 @@ $secondResponse = json_decode(file_get_contents($secondLink));
$config['user_token'] = $secondResponse->access_token;
print json_encode($config);
+fwrite(STDERR, 'FB API token renewed, expires on: ' . date('Y-m-d H:i:s', strtotime('+' . $secondResponse->expires_in . ' seconds')) . PHP_EOL);
?>
diff --git a/config/facebook.json b/config/facebook.json
index e1066c6..3c2fdea 100644
--- a/config/facebook.json
+++ b/config/facebook.json
Binary files differ