dubhaskar / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

FacebookSession does not parse expiration date properly. #288

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. login the user with Facebook.login or get the session after Facebook.init() 
with a pre-existing valid session.
2. read the expireDate

What is the expected output? What do you see instead?
expireDate parses the timestamp from the response from the javascript SDK. This 
is a standard unix timestamp, which is in seconds. The date will parse out to 
somewhere around January 1970, which is completely wrong. If you multiply the 
date by 1000, you get an expected result, which is a few hours after the 
session was established.

What version of the product are you using? On what operating system?
GraphAPI 1.6

Please provide any additional information below.
Flash dates use microtime, measuring dates in milliseconds since epoch, NOT 
seconds. The timestamp should be multiplied by 1000 before being parsed into a 
flash Date object...

Original issue reported on code.google.com by pixels...@gmail.com on 11 Apr 2011 at 4:22

GoogleCodeExporter commented 8 years ago
This bug has been fixed and will be included in the next version of the API.

Original comment by rovertn...@gmail.com on 6 May 2011 at 4:15