facebook/php-sdk — pull request #502 by SuirenChloe (2011-11-27 07:16:42+00:00)
Title: Add Expired Error Handling

PHP SDK doesn't update expired Cookie and doesn't handle expired error.

When you code "Fb.init({ cookie: true })" in the Javascript SDK, the PHP SDK's getAccessToken method tries to get AccessToken from the Cookie.

Even though the AccessToken saved in the Cookie has expired, the PHP SDK did not delete the Cookie nor it updated it, since there was no error handling in the getAccessToken method, only returning the expired old Access Token.

I believe this was a bug.