node-facebook-client
node-facebook-client copied to clipboard
cookie expiration check reversed
var now = new Date();
var expires_time = parseInt(facebook_cookie['expires'], 10) * 1000;
if (now.getTime() < expires_time)
{
/*
* The token is expired.
*/
cb();
return ;
}
makes no sense - the cookie is supposed to expire in the future (replace < with >) this breaks for me with run_example.js
Hmm, this means that the expires time conversion must be broken, too. Because for me it worked even with this very wrong line of code. Will look into that.