martin1982/facebook-graph-sdk
PHP 7.4+ Facebook Graph SDK (v7) for accessing the Facebook Platform. Install via Composer, initialize with app ID/secret, and make Graph API requests with built-in helpers for login flows and access tokens. Includes docs and PHPUnit tests.
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\Exception\ResponseException.
FacebookSDKException extends from the base \Exception class, so getCode() and getMessage() are available by default.
How can I help you explore Laravel packages today?