davejohnson/phonegap-plugin-facebook-connect — pull request #97 by dokterbob (2012-02-14 11:20:45+00:00)
Title: Handle `session.expires == 0` well, allowing `offline_access` to properly function

As stated in [this question](http://stackoverflow.com/questions/7711097/android-facebook-app-access-token-expiry-expires-in-is-always-0), the value of expires becomes `0` for sessions with the `offline_access` permission.

This patch has been tested to work with both `offline_access` as well as normal tokens and seems to perform fine. It should also clarify and cleanup the current code a bit. This should fix #56 and can be considered a supplement to #19.