facebook/facebook-php-sdk — pull request #24 by mattwkelly (2012-05-31 19:29:30+00:00)
Title: Added ability to extend tokens

This adds the ability to get extended tokens. Most folks use the JS client-side flow to auth users, which generates a short-lived token.

They can now call extendAccessToken() in order to get an long-lived token.

Note that this also destroys the original JS session, so some discussion may be needed as I don't know of any unintended consequences this could have.