iOS SDK Version

FBSDKGraphRequest

A protocol to describe anything that represents a graph request
  • The request parameters.

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite)NSDictionary<NSString*,id>*_Nonnullparameters;
    Swift
    varparameters:[String:Any]{getset}
  • The access token string used by the request.

    Declaration

    Objective-C
    @property(nonatomic,copy,readonly,nullable)NSString*tokenString;
    Swift
    vartokenString:String?{get}
  • The Graph API endpoint to use for the request, for example “me”.

    Declaration

    Objective-C
    @property(nonatomic,copy,readonly)NSString*_NonnullgraphPath;
    Swift
    vargraphPath:String{get}
  • The HTTPMethod to use for the request, for example “GET” or “POST”.

    Declaration

    Objective-C
    @property(nonatomic,copy,readonly)FBSDKHTTPMethod_NonnullHTTPMethod;
    Swift
    varhttpMethod:HTTPMethod{get}
  • The Graph API version to use (e.g., “v2.0”)

    Declaration

    Objective-C
    @property(nonatomic,copy,readonly)NSString*_Nonnullversion;
    Swift
    varversion:String{get}
  • Starts a connection to the Graph API.

    Declaration

    Objective-C
    -(nonnullid<FBSDKGraphRequestConnecting>)startWithCompletionHandler:(nullableFBSDKGraphRequestBlock)handler;

    Parameters

    handler
    The handler block to call when the request completes.
  • A formatted description of the graph request

    Declaration

    Objective-C
    -(nonnullNSString*)formattedDescription;
    Swift
    funcformattedDescription()->String