/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. */ #import #import @protocol FBSDKGraphRequest; typedef NSString *const FBSDKHTTPMethod NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(HTTPMethod); NS_ASSUME_NONNULL_BEGIN /** Internal type not intended for use outside of the SDKs. Describes anything that can provide instances of `GraphRequestProtocol` */ NS_SWIFT_NAME(GraphRequestFactoryProtocol) @protocol FBSDKGraphRequestFactory - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters tokenString:(nullable NSString *)tokenString HTTPMethod:(nullable FBSDKHTTPMethod)method flags:(FBSDKGraphRequestFlags)flags forAppEvents:(BOOL)forAppEvents; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters tokenString:(nullable NSString *)tokenString HTTPMethod:(nullable FBSDKHTTPMethod)method flags:(FBSDKGraphRequestFlags)flags forAppEvents:(BOOL)forAppEvents useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters tokenString:(nullable NSString *)tokenString HTTPMethod:(nullable FBSDKHTTPMethod)method flags:(FBSDKGraphRequestFlags)flags; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters tokenString:(nullable NSString *)tokenString HTTPMethod:(nullable FBSDKHTTPMethod)method flags:(FBSDKGraphRequestFlags)flags useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix;; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters HTTPMethod:(FBSDKHTTPMethod)method; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters HTTPMethod:(FBSDKHTTPMethod)method useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters tokenString:(nullable NSString *)tokenString version:(nullable NSString *)version HTTPMethod:(FBSDKHTTPMethod)method; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters tokenString:(nullable NSString *)tokenString version:(nullable NSString *)version HTTPMethod:(FBSDKHTTPMethod)method forAppEvents:(BOOL)forAppEvents; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters tokenString:(nullable NSString *)tokenString version:(nullable NSString *)version HTTPMethod:(FBSDKHTTPMethod)method forAppEvents:(BOOL)forAppEvents useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters flags:(FBSDKGraphRequestFlags)flags; - (id)createGraphRequestWithGraphPath:(NSString *)graphPath parameters:(NSDictionary *)parameters flags:(FBSDKGraphRequestFlags)flags useAlternativeDefaultDomainPrefix:(BOOL)useAlternativeDefaultDomainPrefix; @end NS_ASSUME_NONNULL_END