facebook/facebook-php-sdk — pull request #27 by jsnuggle (2012-06-19 20:52:44+00:00)
Title: Setting Error code in FacebookAPIException

Right now the error code is not being set properly on this object when the response returns as OAuth 2.0 Draft 00 style. Adding a line where, if the error code is set, it's passed properly to the Exception class on instantiation. If not it falls back to the previous default.