summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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