FBSettings
Lớp này không còn khả dụng trong phiên bản gần đây nhất của SDK.
Đã có phiên bản mới hơn của lớp này. Hãy kiểm tra phiên bản mới nhất.
Phương thức nhóm
appVersion

Gets the application version to the provided string. FBAppEvents, for instance, attaches the app version to events that it logs, which are then available in App Insights.

+ (NSString *) appVersion;
Đã tuyên bố trong: FBSettings.h
clientToken

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

+ (NSString *) clientToken;
Đã tuyên bố trong: FBSettings.h
defaultAppID

Get the default Facebook App ID used by the SDK. If not explicitly set, the default will be read from the application's plist. The SDK allows the appID to be overridden per instance in certain cases (e.g. per instance of FBSession)

+ (NSString*) defaultAppID;
Đã tuyên bố trong: FBSettings.h
defaultDisplayName

Get the default Facebook Display Name used by the SDK. If not explicitly set, the default will be read from the application's plist.

+ (NSString *) defaultDisplayName;
Đã tuyên bố trong: FBSettings.h
defaultUrlSchemeSuffix

Get the default url scheme suffix used for sessions. If not explicitly set, the default will be read from the application's plist value for 'FacebookUrlSchemeSuffix'.

+ (NSString*) defaultUrlSchemeSuffix;
Đã tuyên bố trong: FBSettings.h
disableBetaFeature:

Disables a beta feature.

Thông sốMô tả
betaFeature

The beta feature to disable.

+ (void) disableBetaFeature:(FBBetaFeatures)betaFeature;
Đã tuyên bố trong: FBSettings.h
enableBetaFeature:

Enables a beta feature. Beta features are for evaluation only, and are therefore only enabled for debug builds. Beta features should not be enabled in release builds.

Thông sốMô tả
betaFeature

The beta feature to enable.

+ (void) enableBetaFeature:(FBBetaFeatures)betaFeature;
Đã tuyên bố trong: FBSettings.h
enableBetaFeatures:

Enables the specified beta features. Beta features are for evaluation only, and are therefore only enabled for debug builds. Beta features should not be enabled in release builds.

Thông sốMô tả
betaFeatures

The beta features to enable (expects a bitwise OR of FBBetaFeatures)

+ (void) enableBetaFeatures:(NSUInteger)betaFeatures;
Đã tuyên bố trong: FBSettings.h
facebookDomainPart

Get the Facebook domain part

+ (NSString*) facebookDomainPart;
Đã tuyên bố trong: FBSettings.h
isBetaFeatureEnabled:

Determines whether a beta feature is enabled or not.

Thông sốMô tả
betaFeature

The beta feature to check.

+ (BOOL) isBetaFeatureEnabled:(FBBetaFeatures)betaFeature;
Đã tuyên bố trong: FBSettings.h
limitEventAndDataUsage

Gets whether data such as that generated through FBAppEvents 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;
Đã tuyên bố trong: FBSettings.h
loggingBehavior

Retrieve the current Facebook SDK logging behavior.

+ (NSSet *) loggingBehavior;
Đã tuyên bố trong: FBSettings.h
publishInstall:

This method has been replaced by [FBAppEvents activateApp]

+ (void) publishInstall:(NSString *)appID __attribute__((deprecated("use [FBAppEvents activateApp] instead")));
Đã tuyên bố trong: FBSettings.h
publishInstall:withHandler:

Manually publish an attributed install to the Facebook graph, and return the server response back in the supplied handler. Calling this method will implicitly turn off auto-publish. This method acquires the current attribution id from the facebook application, queries the graph API to determine if the application has install attribution enabled, publishes the id, and records success to avoid reporting more than once.

Thông sốMô tả
appID

A specific appID to publish an install for. If nil, uses [FBSession defaultAppID].

handler

A block to call with the server's response.

+ (void)
publishInstall: (NSString *)appID
withHandler: (FBInstallResponseDataHandler)handler
__attribute__((deprecated));
Đã tuyên bố trong: FBSettings.h
resourceBundleName

Get the name of the bundle to override the SDK images and text

+ (NSString*) resourceBundleName;
Đã tuyên bố trong: FBSettings.h
sdkVersion

Retrieve the current iOS SDK version.

+ (NSString *) sdkVersion;
Đã tuyên bố trong: FBSettings.h
setAppVersion:

Sets the application version to the provided string. FBAppEvents, for instance, attaches the app version to events that it logs, which are then available in App Insights.

Thông sốMô tả
appVersion

The version identifier of the iOS app.

+ (void) setAppVersion:(NSString *)appVersion;
Đã tuyên bố trong: FBSettings.h
setClientToken:

Sets the Client Token for the Facebook App. This is needed for certain API calls when made anonymously, without a user-based Session.

Thông sốMô tả
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;
Đã tuyên bố trong: FBSettings.h
setDefaultAppID:

Set the default Facebook App ID to use for sessions. The SDK allows the appID to be overridden per instance in certain cases (e.g. per instance of FBSession)

Thông sốMô tả
appID

The default Facebook App ID to be used by the SDK.

+ (void) setDefaultAppID:(NSString*)appID;
Đã tuyên bố trong: FBSettings.h
setDefaultDisplayName:

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

Thông sốMô tả
displayName

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

+ (void) setDefaultDisplayName:(NSString *)displayName;
Đã tuyên bố trong: FBSettings.h
setDefaultUrlSchemeSuffix:

Set the default url scheme suffix used by the SDK.

Thông sốMô tả
urlSchemeSuffix

The default url scheme suffix to be used by the SDK.

+ (void) setDefaultUrlSchemeSuffix:(NSString*)urlSchemeSuffix;
Đã tuyên bố trong: FBSettings.h
setFacebookDomainPart:

Set the subpart of the facebook domain (e.g. @"beta") so that requests will be sent to graph.beta.facebook.com

Thông sốMô tả
facebookDomainPart

The domain part to be inserted into facebook.com

+ (void) setFacebookDomainPart:(NSString*)facebookDomainPart;
Đã tuyên bố trong: FBSettings.h
setLimitEventAndDataUsage:

Sets whether data such as that generated through FBAppEvents 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.

Thông sốMô tả
limitEventAndDataUsage

The desired value.

+ (void) setLimitEventAndDataUsage:(BOOL)limitEventAndDataUsage;
Đã tuyên bố trong: FBSettings.h
setLoggingBehavior:

Set the current Facebook SDK logging behavior. This should consist of strings defined as constants with FBLogBehavior*, and can be constructed with, e.g., [NSSet initWithObjects:].

Thông sốMô tả
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 in an empty set in order to disable all logging.

+ (void) setLoggingBehavior:(NSSet *)loggingBehavior;
Đã tuyên bố trong: FBSettings.h
setResourceBundleName:

Set the bundle name from the SDK will try and load overrides of images and text

Thông sốMô tả
bundleName

The name of the bundle (MyFBBundle).

+ (void) setResourceBundleName:(NSString*)bundleName;
Đã tuyên bố trong: FBSettings.h
setShouldAutoPublishInstall:

Deprecated method

+ (void) setShouldAutoPublishInstall:(BOOL)autoPublishInstall __attribute__((deprecated));
Đã tuyên bố trong: FBSettings.h
shouldAutoPublishInstall

Deprecated method

+ (BOOL) shouldAutoPublishInstall __attribute__((deprecated));
Đã tuyên bố trong: FBSettings.h
Không đổi
FBLoggingBehaviorAccessTokens
extern NSString *const FBLoggingBehaviorAccessTokens;
Discussion:

Include access token in logging.

Đã tuyên bố trong: FBSettings.h
FBLoggingBehaviorAppEvents
extern NSString *const FBLoggingBehaviorAppEvents;
Discussion:

Log FBAppEvents interactions

Đã tuyên bố trong: FBSettings.h
FBLoggingBehaviorDeveloperErrors
extern NSString *const FBLoggingBehaviorDeveloperErrors;
Discussion:

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

Đã tuyên bố trong: FBSettings.h
FBLoggingBehaviorFBRequests
extern NSString *const FBLoggingBehaviorFBRequests;
Discussion:

Log requests from FBRequest* classes

Đã tuyên bố trong: FBSettings.h
FBLoggingBehaviorFBURLConnections
extern NSString *const FBLoggingBehaviorFBURLConnections;
Discussion:

Log requests from FBURLConnection* classes

Đã tuyên bố trong: FBSettings.h
FBLoggingBehaviorInformational
extern NSString *const FBLoggingBehaviorInformational;
Discussion:

Log Informational occurrences

Đã tuyên bố trong: FBSettings.h
FBLoggingBehaviorPerformanceCharacteristics
extern NSString *const FBLoggingBehaviorPerformanceCharacteristics;
Discussion:

Log performance characteristics

Đã tuyên bố trong: FBSettings.h
FBLoggingBehaviorSessionStateTransitions
extern NSString *const FBLoggingBehaviorSessionStateTransitions;
Discussion:

Log session state transitions.

Đã tuyên bố trong: FBSettings.h
Typedefs
FBBetaFeatures

A list of beta features that can be enabled for the SDK. Beta features are for evaluation only, and are therefore only enabled for DEBUG builds. Beta features should not be enabled in release builds.

typedef enum : NSUInteger {
FBBetaFeaturesNone = 0,
#if defined(DEBUG) || defined(FB_BUILD_ONLY)
FBBetaFeaturesShareDialog = 1 << 0,
FBBetaFeaturesOpenGraphShareDialog = 1 << 1,
#endif
} FBBetaFeatures;
Đã tuyên bố trong: FBSettings.h
FBInstallResponseDataHandler

Block type used to get install data that is returned by server when publishInstall is called

typedef void (^FBInstallResponseDataHandler)(
FBGraphObject *response,
NSError *error);
Đã tuyên bố trong: FBSettings.h
NS_ENUM

Indicates if this app should be restricted

typedef NS_ENUM(NSUInteger, FBRestrictedTreatment) {
FBRestrictedTreatmentNO = 0,
FBRestrictedTreatmentYES = 1
};
Hằng sốMô tả
FBRestrictedTreatmentNO

The default treatment indicating the app is not restricted.

FBRestrictedTreatmentYES

Indicates the app is restricted.

Đã tuyên bố trong: FBSettings.h