This document refers to a feature that was added in PHP SDK v1.0.
PHP SDK Version

FacebookSDKException for the Facebook SDK for PHP

Represents an exception thrown by the SDK.


A FacebookSDKException is thrown when something goes wrong. For example if an invalid signed request is sent to the Facebook\SignedRequest entity, it will throw an FacebookSDKException.

When an error response is returned from the Graph API, it will be thrown as a FacebookSDKException subtype called a Facebook\Exceptions\FacebookResponseException.

Instance Methods

FacebookSDKException extends from the base \Exception class, so getCode() and getMessage() are available by default.