diff options
author | emkael <emkael@tlen.pl> | 2017-11-23 16:06:04 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-11-23 16:06:04 +0100 |
commit | 3c7dddf36276bf244249e4b733763cb1589b083f (patch) | |
tree | f517b839c69b6fa550f027c561e318b661ef6194 /bin/fb-user-token.php | |
parent | 5de9b7b1fb0c2f68f11e0f0159bdaa6691508053 (diff) |
New FB token + new renewal setup
Diffstat (limited to 'bin/fb-user-token.php')
-rw-r--r-- | bin/fb-user-token.php | 1 |
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); ?> |