summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/fb-user-token.php1
1 files changed, 1 insertions, 0 deletions
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);
?>