| | |
| | | #import <FBSDKCoreKit/FBSDKGraphRequestConnectionFactoryProtocol.h> |
| | | #import <FBSDKCoreKit/FBSDKGraphRequestHTTPMethod.h> |
| | | #import <FBSDKCoreKit/FBSDKGraphRequestProtocol.h> |
| | | #import <FBSDKCoreKit/FBSDKSettingsProtocol.h> |
| | | #import <FBSDKCoreKit/FBSDKTokenStringProviding.h> |
| | | |
| | | @protocol FBSDKSettings; |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | /** |
| | | Represents a request to the Facebook Graph API. |
| | | |
| | | Represents a request to the Facebook Graph API. |
| | | |
| | | `FBSDKGraphRequest` encapsulates the components of a request (the |
| | | Graph API path, the parameters, error recovery behavior) and should be |
| | |
| | | By default, FBSDKGraphRequest will attempt to recover any errors returned from |
| | | Facebook. You can disable this via `disableErrorRecovery:`. |
| | | |
| | | @see FBSDKGraphErrorRecoveryProcessor |
| | | See FBSDKGraphErrorRecoveryProcessor |
| | | */ |
| | | NS_SWIFT_NAME(GraphRequest) |
| | | @interface FBSDKGraphRequest : NSObject <FBSDKGraphRequest> |
| | |
| | | HTTPMethod:(FBSDKHTTPMethod)method; |
| | | |
| | | /** |
| | | Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. |
| | | Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. |
| | | @param graphPath the graph path (e.g., @"me"). |
| | | @param parameters the optional parameters dictionary. |
| | | */ |
| | |
| | | parameters:(NSDictionary<NSString *, id> *)parameters; |
| | | |
| | | /** |
| | | Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. |
| | | Initializes a new instance that use use `[FBSDKAccessToken currentAccessToken]`. |
| | | @param graphPath the graph path (e.g., @"me"). |
| | | @param parameters the optional parameters dictionary. |
| | | @param method the HTTP method. Empty String defaults to @"GET". |
| | |
| | | HTTPMethod:(FBSDKHTTPMethod)method; |
| | | |
| | | /** |
| | | Initializes a new instance. |
| | | Initializes a new instance. |
| | | @param graphPath the graph path (e.g., @"me"). |
| | | @param parameters the optional parameters dictionary. |
| | | @param tokenString the token string to use. Specifying nil will cause no token to be used. |
| | |
| | | NS_DESIGNATED_INITIALIZER; |
| | | |
| | | /** |
| | | Initializes a new instance. |
| | | Initializes a new instance. |
| | | @param graphPath the graph path (e.g., @"me"). |
| | | @param parameters the optional parameters dictionary. |
| | | @param requestFlags flags that indicate how a graph request should be treated in various scenarios |
| | |
| | | flags:(FBSDKGraphRequestFlags)requestFlags; |
| | | |
| | | /** |
| | | Initializes a new instance. |
| | | Initializes a new instance. |
| | | @param graphPath the graph path (e.g., @"me"). |
| | | @param parameters the optional parameters dictionary. |
| | | @param tokenString the token string to use. Specifying nil will cause no token to be used. |
| | |
| | | HTTPMethod:(nullable NSString *)HTTPMethod |
| | | flags:(FBSDKGraphRequestFlags)flags; |
| | | |
| | | /** |
| | | The request parameters. |
| | | */ |
| | | /// The request parameters. |
| | | @property (nonatomic, copy) NSDictionary<NSString *, id> *parameters; |
| | | |
| | | /** |
| | | The access token string used by the request. |
| | | */ |
| | | /// The access token string used by the request. |
| | | @property (nullable, nonatomic, readonly, copy) NSString *tokenString; |
| | | |
| | | /** |
| | | The Graph API endpoint to use for the request, for example "me". |
| | | */ |
| | | /// The Graph API endpoint to use for the request, for example "me". |
| | | @property (nonatomic, readonly, copy) NSString *graphPath; |
| | | |
| | | /** |
| | | The HTTPMethod to use for the request, for example "GET" or "POST". |
| | | */ |
| | | /// The HTTPMethod to use for the request, for example "GET" or "POST". |
| | | @property (nonatomic, readonly, copy) FBSDKHTTPMethod HTTPMethod; |
| | | |
| | | /** |
| | | The Graph API version to use (e.g., "v2.0") |
| | | */ |
| | | /// The Graph API version to use (e.g., "v2.0") |
| | | @property (nonatomic, readonly, copy) NSString *version; |
| | | |
| | | /** |
| | | If set, disables the automatic error recovery mechanism. |
| | | If set, disables the automatic error recovery mechanism. |
| | | @param disable whether to disable the automatic error recovery mechanism |
| | | |
| | | By default, non-batched FBSDKGraphRequest instances will automatically try to recover |
| | |
| | | // UNCRUSTIFY_FORMAT_ON |
| | | |
| | | /** |
| | | Starts a connection to the Graph API. |
| | | Starts a connection to the Graph API. |
| | | @param completion The handler block to call when the request completes. |
| | | */ |
| | | - (id<FBSDKGraphRequestConnecting>)startWithCompletion:(nullable FBSDKGraphRequestCompletion)completion; |