| | |
| | | * Constants defining logging behavior. Use with <[FBSDKSettings setLoggingBehavior]>. |
| | | */ |
| | | |
| | | /*! Include access token in logging. */ |
| | | /** Include access token in logging. */ |
| | | FBSDK_EXTERN NSString *const FBSDKLoggingBehaviorAccessTokens; |
| | | |
| | | /*! Log performance characteristics */ |
| | | /** Log performance characteristics */ |
| | | FBSDK_EXTERN NSString *const FBSDKLoggingBehaviorPerformanceCharacteristics; |
| | | |
| | | /*! Log FBSDKAppEvents interactions */ |
| | | /** Log FBSDKAppEvents interactions */ |
| | | FBSDK_EXTERN NSString *const FBSDKLoggingBehaviorAppEvents; |
| | | |
| | | /*! Log Informational occurrences */ |
| | | /** Log Informational occurrences */ |
| | | FBSDK_EXTERN NSString *const FBSDKLoggingBehaviorInformational; |
| | | |
| | | /*! Log cache errors. */ |
| | | /** Log cache errors. */ |
| | | FBSDK_EXTERN NSString *const FBSDKLoggingBehaviorCacheErrors; |
| | | |
| | | /*! Log errors from SDK UI controls */ |
| | | /** Log errors from SDK UI controls */ |
| | | FBSDK_EXTERN NSString *const FBSDKLoggingBehaviorUIControlErrors; |
| | | |
| | | /*! Log debug warnings from API response, i.e. when friends fields requested, but user_friends permission isn't granted. */ |
| | | /** Log debug warnings from API response, i.e. when friends fields requested, but user_friends permission isn't granted. */ |
| | | FBSDK_EXTERN NSString *const FBSDKLoggingBehaviorGraphAPIDebugWarning; |
| | | |
| | | /*! Log warnings from API response, i.e. when requested feature will be deprecated in next version of API. |
| | | /** Log warnings from API response, i.e. when requested feature will be deprecated in next version of API. |
| | | Info is the lowest level of severity, using it will result in logging all previously mentioned levels. |
| | | */ |
| | | FBSDK_EXTERN NSString *const FBSDKLoggingBehaviorGraphAPIDebugInfo; |
| | | |
| | | /*! Log errors from SDK network requests */ |
| | | /** Log errors from SDK network requests */ |
| | | FBSDK_EXTERN NSString *const FBSDKLoggingBehaviorNetworkRequests; |
| | | |
| | | /*! Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. */ |
| | | /** Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors. */ |
| | | FBSDK_EXTERN NSString *const FBSDKLoggingBehaviorDeveloperErrors; |
| | | |
| | | @interface FBSDKSettings : NSObject |
| | | |
| | | /*! |
| | | @abstract Get the Facebook App ID used by the SDK. |
| | | @discussion If not explicitly set, the default will be read from the application's plist (FacebookAppID). |
| | | /** |
| | | Get the Facebook App ID used by the SDK. |
| | | |
| | | If not explicitly set, the default will be read from the application's plist (FacebookAppID). |
| | | */ |
| | | + (NSString *)appID; |
| | | |
| | | /*! |
| | | @abstract Set the Facebook App ID to be used by the SDK. |
| | | @param appID The Facebook App ID to be used by the SDK. |
| | | /** |
| | | Set the Facebook App ID to be used by the SDK. |
| | | - Parameter appID: The Facebook App ID to be used by the SDK. |
| | | */ |
| | | + (void)setAppID:(NSString *)appID; |
| | | |
| | | /*! |
| | | @abstract Get the default url scheme suffix used for sessions. |
| | | @discussion If not explicitly set, the default will be read from the application's plist (FacebookUrlSchemeSuffix). |
| | | /** |
| | | Get the default url scheme suffix used for sessions. |
| | | |
| | | If not explicitly set, the default will be read from the application's plist (FacebookUrlSchemeSuffix). |
| | | */ |
| | | + (NSString *)appURLSchemeSuffix; |
| | | |
| | | /*! |
| | | @abstract Set the app url scheme suffix used by the SDK. |
| | | @param appURLSchemeSuffix The url scheme suffix to be used by the SDK. |
| | | /** |
| | | Set the app url scheme suffix used by the SDK. |
| | | - Parameter appURLSchemeSuffix: The url scheme suffix to be used by the SDK. |
| | | */ |
| | | + (void)setAppURLSchemeSuffix:(NSString *)appURLSchemeSuffix; |
| | | |
| | | /*! |
| | | @abstract Retrieve the Client Token that has been set via [FBSDKSettings setClientToken]. |
| | | @discussion If not explicitly set, the default will be read from the application's plist (FacebookClientToken). |
| | | /** |
| | | Retrieve the Client Token that has been set via [FBSDKSettings setClientToken]. |
| | | |
| | | If not explicitly set, the default will be read from the application's plist (FacebookClientToken). |
| | | */ |
| | | + (NSString *)clientToken; |
| | | |
| | | /*! |
| | | @abstract Sets the Client Token for the Facebook App. |
| | | @discussion This is needed for certain API calls when made anonymously, without a user-based access token. |
| | | @param clientToken The Facebook App's "client token", which, for a given appid can be found in the Security |
| | | /** |
| | | Sets the Client Token for the Facebook App. |
| | | |
| | | This is needed for certain API calls when made anonymously, without a user-based access token. |
| | | - Parameter clientToken: The Facebook App's "client token", which, for a given appid can be found in the Security |
| | | section of the Advanced tab of the Facebook App settings found at <https://developers.facebook.com/apps/[your-app-id]> |
| | | */ |
| | | + (void)setClientToken:(NSString *)clientToken; |
| | | |
| | | /*! |
| | | @abstract A convenient way to toggle error recovery for all FBSDKGraphRequest instances created after this is set. |
| | | @param disableGraphErrorRecovery YES or NO. |
| | | /** |
| | | A convenient way to toggle error recovery for all FBSDKGraphRequest instances created after this is set. |
| | | - Parameter disableGraphErrorRecovery: YES or NO. |
| | | */ |
| | | + (void)setGraphErrorRecoveryDisabled:(BOOL)disableGraphErrorRecovery; |
| | | |
| | | /*! |
| | | @abstract Get the Facebook Display Name used by the SDK. |
| | | @discussion If not explicitly set, the default will be read from the application's plist (FacebookDisplayName). |
| | | /** |
| | | Get the Facebook Display Name used by the SDK. |
| | | |
| | | If not explicitly set, the default will be read from the application's plist (FacebookDisplayName). |
| | | */ |
| | | + (NSString *)displayName; |
| | | |
| | | /*! |
| | | @abstract Set the default Facebook Display Name to be used by the SDK. |
| | | @discussion This should match the Display Name that has been set for the app with the corresponding Facebook App ID, |
| | | /** |
| | | Set the default Facebook Display Name to be used by the SDK. |
| | | |
| | | This should match the Display Name that has been set for the app with the corresponding Facebook App ID, |
| | | in the Facebook App Dashboard. |
| | | @param displayName The Facebook Display Name to be used by the SDK. |
| | | - Parameter displayName: The Facebook Display Name to be used by the SDK. |
| | | */ |
| | | + (void)setDisplayName:(NSString *)displayName; |
| | | |
| | | /*! |
| | | @abstract Get the Facebook domain part. |
| | | @discussion If not explicitly set, the default will be read from the application's plist (FacebookDomainPart). |
| | | /** |
| | | Get the Facebook domain part. |
| | | |
| | | If not explicitly set, the default will be read from the application's plist (FacebookDomainPart). |
| | | */ |
| | | + (NSString *)facebookDomainPart; |
| | | |
| | | /*! |
| | | @abstract Set the subpart of the Facebook domain. |
| | | @discussion This can be used to change the Facebook domain (e.g. @"beta") so that requests will be sent to |
| | | /** |
| | | Set the subpart of the Facebook domain. |
| | | |
| | | This can be used to change the Facebook domain (e.g. @"beta") so that requests will be sent to |
| | | graph.beta.facebook.com |
| | | @param facebookDomainPart The domain part to be inserted into facebook.com. |
| | | - Parameter facebookDomainPart: The domain part to be inserted into facebook.com. |
| | | */ |
| | | + (void)setFacebookDomainPart:(NSString *)facebookDomainPart; |
| | | |
| | | /*! |
| | | @abstract The quality of JPEG images sent to Facebook from the SDK. |
| | | @discussion If not explicitly set, the default is 0.9. |
| | | @see [UIImageJPEGRepresentation](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIImageJPEGRepresentation) */ |
| | | /** |
| | | The quality of JPEG images sent to Facebook from the SDK. |
| | | |
| | | If not explicitly set, the default is 0.9. |
| | | |
| | | - See:[UIImageJPEGRepresentation](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIImageJPEGRepresentation) */ |
| | | + (CGFloat)JPEGCompressionQuality; |
| | | |
| | | /*! |
| | | @abstract Set the quality of JPEG images sent to Facebook from the SDK. |
| | | @param JPEGCompressionQuality The quality for JPEG images, expressed as a value from 0.0 to 1.0. |
| | | @see [UIImageJPEGRepresentation](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIImageJPEGRepresentation) */ |
| | | /** |
| | | Set the quality of JPEG images sent to Facebook from the SDK. |
| | | - Parameter JPEGCompressionQuality: The quality for JPEG images, expressed as a value from 0.0 to 1.0. |
| | | |
| | | - See:[UIImageJPEGRepresentation](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIKitFunctionReference/#//apple_ref/c/func/UIImageJPEGRepresentation) */ |
| | | + (void)setJPEGCompressionQuality:(CGFloat)JPEGCompressionQuality; |
| | | |
| | | /*! |
| | | @abstract |
| | | Gets whether data such as that generated through FBSDKAppEvents and sent to Facebook should be restricted from being used for other than analytics and conversions. Defaults to NO. This value is stored on the device and persists across app launches. |
| | | /** |
| | | Flag which controls the auto logging of basic app events, such as activateApp and deactivateApp. |
| | | If not explicitly set, the default is 1 - true |
| | | */ |
| | | + (NSNumber *)autoLogAppEventsEnabled; |
| | | |
| | | /** |
| | | Set the flag which controls the auto logging of basic app events, such as activateApp and deactivateApp. |
| | | - Parameter AutoLogAppEventsEnabled: Flag value, expressed as a value from 0 - false or 1 - true. |
| | | */ |
| | | + (void)setAutoLogAppEventsEnabled:(NSNumber *)AutoLogAppEventsEnabled; |
| | | |
| | | /** |
| | | Gets whether data such as that generated through FBSDKAppEvents and sent to Facebook should be restricted from being used for other than analytics and conversions. Defaults to NO. This value is stored on the device and persists across app launches. |
| | | */ |
| | | + (BOOL)limitEventAndDataUsage; |
| | | |
| | | /*! |
| | | @abstract |
| | | Sets whether data such as that generated through FBSDKAppEvents and sent to Facebook should be restricted from being used for other than analytics and conversions. Defaults to NO. This value is stored on the device and persists across app launches. |
| | | /** |
| | | Sets whether data such as that generated through FBSDKAppEvents and sent to Facebook should be restricted from being used for other than analytics and conversions. Defaults to NO. This value is stored on the device and persists across app launches. |
| | | |
| | | @param limitEventAndDataUsage The desired value. |
| | | - Parameter limitEventAndDataUsage: The desired value. |
| | | */ |
| | | + (void)setLimitEventAndDataUsage:(BOOL)limitEventAndDataUsage; |
| | | |
| | | /*! |
| | | @abstract Retrieve the current iOS SDK version. |
| | | /** |
| | | Retrieve the current iOS SDK version. |
| | | */ |
| | | + (NSString *)sdkVersion; |
| | | |
| | | /*! |
| | | @abstract Retrieve the current Facebook SDK logging behavior. |
| | | /** |
| | | Retrieve the current Facebook SDK logging behavior. |
| | | */ |
| | | + (NSSet *)loggingBehavior; |
| | | |
| | | /*! |
| | | @abstract Set the current Facebook SDK logging behavior. This should consist of strings defined as |
| | | /** |
| | | Set the current Facebook SDK logging behavior. This should consist of strings defined as |
| | | constants with FBSDKLoggingBehavior*. |
| | | |
| | | @param loggingBehavior A set of strings indicating what information should be logged. If nil is provided, the logging |
| | | - Parameter loggingBehavior: A set of strings indicating what information should be logged. If nil is provided, the logging |
| | | behavior is reset to the default set of enabled behaviors. Set to an empty set in order to disable all logging. |
| | | |
| | | @discussion You can also define this via an array in your app plist with key "FacebookLoggingBehavior" or add and remove individual values via enableLoggingBehavior: or disableLogginBehavior: |
| | | |
| | | You can also define this via an array in your app plist with key "FacebookLoggingBehavior" or add and remove individual values via enableLoggingBehavior: or disableLogginBehavior: |
| | | */ |
| | | + (void)setLoggingBehavior:(NSSet *)loggingBehavior; |
| | | |
| | | /*! |
| | | @abstract Enable a particular Facebook SDK logging behavior. |
| | | /** |
| | | Enable a particular Facebook SDK logging behavior. |
| | | |
| | | @param loggingBehavior The LoggingBehavior to enable. This should be a string defined as a constant with FBSDKLoggingBehavior*. |
| | | - Parameter loggingBehavior: The LoggingBehavior to enable. This should be a string defined as a constant with FBSDKLoggingBehavior*. |
| | | */ |
| | | + (void)enableLoggingBehavior:(NSString *)loggingBehavior; |
| | | |
| | | /*! |
| | | @abstract Disable a particular Facebook SDK logging behavior. |
| | | /** |
| | | Disable a particular Facebook SDK logging behavior. |
| | | |
| | | @param loggingBehavior The LoggingBehavior to disable. This should be a string defined as a constant with FBSDKLoggingBehavior*. |
| | | - Parameter loggingBehavior: The LoggingBehavior to disable. This should be a string defined as a constant with FBSDKLoggingBehavior*. |
| | | */ |
| | | + (void)disableLoggingBehavior:(NSString *)loggingBehavior; |
| | | |
| | | /*! |
| | | @abstract Set the user defaults key used by legacy token caches. |
| | | /** |
| | | Set the user defaults key used by legacy token caches. |
| | | |
| | | @param tokenInformationKeyName the key used by legacy token caches. |
| | | - Parameter tokenInformationKeyName: the key used by legacy token caches. |
| | | |
| | | @discussion Use this only if you customized FBSessionTokenCachingStrategy in v3.x of |
| | | |
| | | Use this only if you customized FBSessionTokenCachingStrategy in v3.x of |
| | | the Facebook SDK for iOS. |
| | | */ |
| | | + (void)setLegacyUserDefaultTokenInformationKeyName:(NSString *)tokenInformationKeyName; |
| | | |
| | | /*! |
| | | @abstract Get the user defaults key used by legacy token caches. |
| | | /** |
| | | Get the user defaults key used by legacy token caches. |
| | | */ |
| | | + (NSString *)legacyUserDefaultTokenInformationKeyName; |
| | | |
| | | /** |
| | | Overrides the default Graph API version to use with `FBSDKGraphRequests`. This overrides `FBSDK_TARGET_PLATFORM_VERSION`. |
| | | |
| | | The string should be of the form `@"v2.7"`. |
| | | */ |
| | | + (void)setGraphAPIVersion:(NSString *)version; |
| | | |
| | | /** |
| | | Returns the default Graph API version. Defaults to `FBSDK_TARGET_PLATFORM_VERSION` |
| | | */ |
| | | + (NSString *)graphAPIVersion; |
| | | |
| | | @end |