When I do this in the Facebook JavaScript API:
FB.getLoginStatus(function(response) {
console.log(response.authResponse.expiresIn);
});
I get back an integer like 5184000.
When is that? What are the units? What's the epoch? It's clearly not in milliseconds since 1970. How do I convert that to a Date in JavaScript?
It is the time of expiry in seconds. It is equivalent to 60 days.
In order to convert to a date read here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With