Swift SDK Version

Graph API

  • Represents a request to the Facebook Graph API.
    GraphRequest encapsulates the components of a request (the Graph API path, the parameters, error recovery behavior) and should be used in conjunction with GraphRequestConnection to issue the request.
    Nearly all Graph APIs require an access token. Unless specified, the AccessToken.current is used. Therefore, most requests will require login first (see LoginManager in FacebookLogin.framework).
    See more

    Declaration

    Swift
    publicstructGraphRequest:GraphRequestProtocol
  • Protocol that represents a request to the Facebook Graph API.
    An implementation of this protocol is intended to be either generic and be used for a lot of separate endpoints, or encapsulate a request + response type for a single endpoint, for example Profile.
    To send a request and receive a response - see GraphRequestConnection.
    Nearly all Graph APIs require an access token. Unless specified, the AccessToken.current is used. Therefore, most requests will require login first (see LoginManager in FacebookLogin.framework).
    A start function is provided for convenience for single requests.
    See more

    Declaration

    Swift
    publicprotocolGraphRequestProtocol
  • Represents HTTP methods that could be used to issue GraphRequestProtocol.
    See more

    Declaration

    Swift
    publicenumGraphRequestHTTPMethod:String
  • Represents a single connection to Facebook to service a single or multiple requests.
    The request settings and properties are encapsulated in a reusable GraphRequest or a custom GraphRequestProtocol. This object encapsulates the concerns of a single communication e.g. starting a connection, canceling a connection, or batching requests.
    See more

    Declaration

    Swift
    publicclassGraphRequestConnection