FBSDKSettings
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด
วิธีการคลาส
appID

Get the Facebook App ID used by the SDK.

+ (NSString *) appID;
Discussion:

If not explicitly set, the default will be read from the application's plist (FacebookAppID).

ให้คำรับรองไว้ใน: FBSDKSettings.h
appURLSchemeSuffix

Get the default url scheme suffix used for sessions.

+ (NSString *) appURLSchemeSuffix;
Discussion:

If not explicitly set, the default will be read from the application's plist (FacebookUrlSchemeSuffix).

ให้คำรับรองไว้ใน: FBSDKSettings.h
clientToken

Retrieve the Client Token that has been set via [FBSDKSettings setClientToken].

+ (NSString *) clientToken;
Discussion:

If not explicitly set, the default will be read from the application's plist (FacebookClientToken).

ให้คำรับรองไว้ใน: FBSDKSettings.h
disableLoggingBehavior:

Disable a particular Facebook SDK logging behavior.

พารามิเตอร์คำอธิบาย
loggingBehavior

The LoggingBehavior to disable. This should be a string defined as a constant with FBSDKLoggingBehavior*.

+ (void) disableLoggingBehavior:(NSString *)loggingBehavior;
ให้คำรับรองไว้ใน: FBSDKSettings.h
displayName

Get the Facebook Display Name used by the SDK.

+ (NSString *) displayName;
Discussion:

If not explicitly set, the default will be read from the application's plist (FacebookDisplayName).

ให้คำรับรองไว้ใน: FBSDKSettings.h
enableLoggingBehavior:

Enable a particular Facebook SDK logging behavior.

พารามิเตอร์คำอธิบาย
loggingBehavior

The LoggingBehavior to enable. This should be a string defined as a constant with FBSDKLoggingBehavior*.

+ (void) enableLoggingBehavior:(NSString *)loggingBehavior;
ให้คำรับรองไว้ใน: FBSDKSettings.h
facebookDomainPart

Get the Facebook domain part.

+ (NSString *) facebookDomainPart;
Discussion:

If not explicitly set, the default will be read from the application's plist (FacebookDomainPart).

ให้คำรับรองไว้ใน: FBSDKSettings.h
JPEGCompressionQuality

The quality of JPEG images sent to Facebook from the SDK.

+ (CGFloat) JPEGCompressionQuality;
Discussion:

If not explicitly set, the default is 0.9.

ให้คำรับรองไว้ใน: FBSDKSettings.h
legacyUserDefaultTokenInformationKeyName

Get the user defaults key used by legacy token caches.

+ (NSString *) legacyUserDefaultTokenInformationKeyName;
ให้คำรับรองไว้ใน: FBSDKSettings.h
limitEventAndDataUsage

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;
ให้คำรับรองไว้ใน: FBSDKSettings.h
loggingBehavior

Retrieve the current Facebook SDK logging behavior.

+ (NSSet *) loggingBehavior;
ให้คำรับรองไว้ใน: FBSDKSettings.h
sdkVersion

Retrieve the current iOS SDK version.

+ (NSString *) sdkVersion;
ให้คำรับรองไว้ใน: FBSDKSettings.h
setAppID:

Set the Facebook App ID to be used by the SDK.

พารามิเตอร์คำอธิบาย
appID

The Facebook App ID to be used by the SDK.

+ (void) setAppID:(NSString *)appID;
ให้คำรับรองไว้ใน: FBSDKSettings.h
setAppURLSchemeSuffix:

Set the app url scheme suffix used by the SDK.

พารามิเตอร์คำอธิบาย
appURLSchemeSuffix

The url scheme suffix to be used by the SDK.

+ (void) setAppURLSchemeSuffix:(NSString *)appURLSchemeSuffix;
ให้คำรับรองไว้ใน: FBSDKSettings.h
setClientToken:

Sets the Client Token for the Facebook App.

พารามิเตอร์คำอธิบาย
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;
Discussion:

This is needed for certain API calls when made anonymously, without a user-based access token.

ให้คำรับรองไว้ใน: FBSDKSettings.h
setDisplayName:

Set the default Facebook Display Name to be used by the SDK.

พารามิเตอร์คำอธิบาย
displayName

The Facebook Display Name to be used by the SDK.

+ (void) setDisplayName:(NSString *)displayName;
Discussion:

This should match the Display Name that has been set for the app with the corresponding Facebook App ID, in the Facebook App Dashboard.

ให้คำรับรองไว้ใน: FBSDKSettings.h
setFacebookDomainPart:

Set the subpart of the Facebook domain.

พารามิเตอร์คำอธิบาย
facebookDomainPart

The domain part to be inserted into facebook.com.

+ (void) setFacebookDomainPart:(NSString *)facebookDomainPart;
Discussion:

This can be used to change the Facebook domain (e.g. @"beta") so that requests will be sent to graph.beta.facebook.com

ให้คำรับรองไว้ใน: FBSDKSettings.h
setGraphErrorRecoveryDisabled:

A convenient way to toggle error recovery for all FBSDKGraphRequest instances created after this is set.

พารามิเตอร์คำอธิบาย
disableGraphErrorRecovery

YES or NO.

+ (void) setGraphErrorRecoveryDisabled:(BOOL)disableGraphErrorRecovery;
ให้คำรับรองไว้ใน: FBSDKSettings.h
setJPEGCompressionQuality:

Set the quality of JPEG images sent to Facebook from the SDK.

พารามิเตอร์คำอธิบาย
JPEGCompressionQuality

The quality for JPEG images, expressed as a value from 0.0 to 1.0.

+ (void) setJPEGCompressionQuality:(CGFloat)JPEGCompressionQuality;
ให้คำรับรองไว้ใน: FBSDKSettings.h
setLegacyUserDefaultTokenInformationKeyName:

Set the user defaults key used by legacy token caches.

พารามิเตอร์คำอธิบาย
tokenInformationKeyName

The key used by legacy token caches.

+ (void) setLegacyUserDefaultTokenInformationKeyName:(NSString *)tokenInformationKeyName;
Discussion:

Use this only if you customized FBSessionTokenCachingStrategy in v3.x of the Facebook SDK for iOS.

ให้คำรับรองไว้ใน: FBSDKSettings.h
setLimitEventAndDataUsage:

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.

พารามิเตอร์คำอธิบาย
limitEventAndDataUsage

The desired value.

+ (void) setLimitEventAndDataUsage:(BOOL)limitEventAndDataUsage;
ให้คำรับรองไว้ใน: FBSDKSettings.h
setLoggingBehavior:

Set the current Facebook SDK logging behavior. This should consist of strings defined as constants with FBSDKLoggingBehavior*.

พารามิเตอร์คำอธิบาย
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.

+ (void) setLoggingBehavior:(NSSet *)loggingBehavior;
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:

ให้คำรับรองไว้ใน: FBSDKSettings.h
คอนสแตนซ์
FBSDKLoggingBehaviorAccessTokens
FBSDK_EXTER N NSString *const FBSDKLoggingBehaviorAccessTokens;
Discussion:

Include access token in logging.

ให้คำรับรองไว้ใน: FBSDKSettings.h
FBSDKLoggingBehaviorAppEvents
FBSDK_EXTER N NSString *const FBSDKLoggingBehaviorAppEvents;
Discussion:

Log FBSDKAppEvents interactions

ให้คำรับรองไว้ใน: FBSDKSettings.h
FBSDKLoggingBehaviorCacheErrors
FBSDK_EXTER N NSString *const FBSDKLoggingBehaviorCacheErrors;
Discussion:

Log cache errors.

ให้คำรับรองไว้ใน: FBSDKSettings.h
FBSDKLoggingBehaviorDeveloperErrors
FBSDK_EXTER N NSString *const FBSDKLoggingBehaviorDeveloperErrors;
Discussion:

Log errors likely to be preventable by the developer. This is in the default set of enabled logging behaviors.

ให้คำรับรองไว้ใน: FBSDKSettings.h
FBSDKLoggingBehaviorGraphAPIDebugInfo
FBSDK_EXTER N NSString *const FBSDKLoggingBehaviorGraphAPIDebugInfo;
Discussion:

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.

ให้คำรับรองไว้ใน: FBSDKSettings.h
FBSDKLoggingBehaviorGraphAPIDebugWarning
FBSDK_EXTER N NSString *const FBSDKLoggingBehaviorGraphAPIDebugWarning;
Discussion:

Log debug warnings from API response, i.e. when friends fields requested, but user_friends permission isn't granted.

ให้คำรับรองไว้ใน: FBSDKSettings.h
FBSDKLoggingBehaviorInformational
FBSDK_EXTER N NSString *const FBSDKLoggingBehaviorInformational;
Discussion:

Log Informational occurrences

ให้คำรับรองไว้ใน: FBSDKSettings.h
FBSDKLoggingBehaviorNetworkRequests
FBSDK_EXTER N NSString *const FBSDKLoggingBehaviorNetworkRequests;
Discussion:

Log errors from SDK network requests

ให้คำรับรองไว้ใน: FBSDKSettings.h
FBSDKLoggingBehaviorPerformanceCharacteristics
FBSDK_EXTER N NSString *const FBSDKLoggingBehaviorPerformanceCharacteristics;
Discussion:

Log performance characteristics

ให้คำรับรองไว้ใน: FBSDKSettings.h
FBSDKLoggingBehaviorUIControlErrors
FBSDK_EXTER N NSString *const FBSDKLoggingBehaviorUIControlErrors;
Discussion:

Log errors from SDK UI controls

ให้คำรับรองไว้ใน: FBSDKSettings.h