Below is the API reference for the Facebook SDK for PHP.
These classes are at the core of the Facebook SDK for PHP.
Class name | Description |
---|---|
The main service object that helps tie all the SDK components together. | |
An entity that represents a Facebook app and is required to send requests to Graph. |
These classes facilitate authenticating a Facebook user with OAuth 2.0.
Class name | Description |
---|---|
An OAuth 2.0 service to obtain a user access token from a redirect using a "Log in with Facebook" link. | |
An entity that represents an access token. | |
| An entity that represents metadata from an access token. |
| An OAuth 2.0 client that sends and receives HTTP requests related to user authentication. |
These classes are used in a Graph API request/response cycle.
Class name | Description |
---|---|
An entity that represents an HTTP request to be sent to Graph. | |
An entity that represents an HTTP response from Graph. | |
An entity that represents an HTTP batch request to be sent to Graph. | |
An entity that represents an HTTP response from Graph after sending a batch request. | |
A service object that sends HTTP requests and receives HTTP responses to and from the Graph API. |
Classes to help obtain and manage signed requests.
Class name | Description |
---|---|
Used to obtain an access token or signed request from the cookie set by the JavaScript SDK. | |
Used to obtain an access token or signed request from within the context of an app canvas. | |
Used to obtain an access token or signed request from within the context of a page tab. | |
An entity that represents a signed request. |
These are the core exceptions that the SDK will throw when an error occurs.
Class name | Description |
---|---|
The base exception to all exceptions thrown by the SDK. Thrown when there is a non-Graph-response-related error. | |
The base exception to all Graph error responses. This exception is never thrown directly. |
Graph nodes are collections that represent nodes returned by the Graph API. And Graph edges are a collection of nodes returned from an edge on the Graph API.
Class name | Description |
---|---|
The base collection object that represents a generic node. | |
A collection of GraphNode's with special methods to help paginate over the edge. | |
A collection that represents an Achievement node. | |
A collection that represents an Album node. | |
A collection that represents a Location node. | |
A collection that represents a Page node. | |
A collection that represents a Picture node. | |
A collection that represents a User node. |
These are entities that represent files to be uploaded with a Graph request.
Class name | Description |
---|---|
Represents a generic file to be uploaded to the Graph API. | |
Represents a video file to be uploaded to the Graph API. |
You can overwrite certain functionality of the SDK by coding to an interface and injecting an instance of your custom functionality.
Interface name | Description |
---|---|
| An interface to code your own HTTP client implementation. |
| An entity that is returned from an instance of a |
An interface to code your own persistent data storage implementation. | |
An interface to code your own URL detection logic. | |
| An interface to code your own cryptographically secure pseudo-random string generator. |