jbaicoianu/elation — pull request #3 by ajsharma (2012-08-23 20:56:56+00:00)
Title: Facebook speed updates

The general idea is that FB gives us a 'expires' value along with an access token (https://developers.facebook.com/docs/authentication/server-side/) but doesn't do anything with it by default. Now, the lib captures the expires time in the session too.

We then check that `access_token_expires_at` timestamp rather than going directly to FB. If the access token has expired, we get a new one, but if not we use the one in the session.

Doesn't prevent all oauth calls to FB, but will reduce having to do multiples one in a row.