FBSDKLoginButton
يتوفر إصدار أحدث لهذه الفئة. يرجى التحقق أحدث إصدار.

A button to simplify login.

Discussion:

FBSDKLoginButton works with [FBSDKAccessToken currentAccessToken] to determine what to display. The delegate is only notified when a login flow is initiated by a tapping the button and your app delegate is connected to FBSDKApplicationDelegate (in the same way when using FBSDKLoginManager).

FBSDKLoginButton has a fixed height, but you may change the width. initWithFrame:CGRectZero will size the button to its minimum frame.

Inherits from:FBSDKButton
Declared in:FBSDKLoginButton.h
الخصائص
defaultAudience

The default audience to use, if publish permissions are requested at login time.

@property (assign, nonatomic) FBSDKDefaultAudience defaultAudience;
تم الكشف في: FBSDKLoginButton.h
delegate

Gets or sets the delegate.

@property (weak, nonatomic) IBOutlet id<FBSDKLoginButtonDelegate> delegate;
تم الكشف في: FBSDKLoginButton.h
loginBehavior

Gets or sets the login behavior to use

@property (assign, nonatomic) FBSDKLoginBehavior loginBehavior;
تم الكشف في: FBSDKLoginButton.h
publishPermissions

The publish permissions to request.

@property (copy, nonatomic) NSArray *publishPermissions;
Discussion:

Use defaultAudience to specify the default audience to publish to. Note this is converted to NSSet and is only an NSArray for the convenience of literal syntax.

تم الكشف في: FBSDKLoginButton.h
readPermissions

The read permissions to request.

@property (copy, nonatomic) NSArray *readPermissions;
Discussion:

Note, that if read permissions are specified, then publish permissions should not be specified. This is converted to NSSet and is only an NSArray for the convenience of literal syntax.

تم الكشف في: FBSDKLoginButton.h
tooltipBehavior

Gets or sets the desired tooltip behavior.

@property (assign, nonatomic) FBSDKLoginButtonTooltipBehavior tooltipBehavior;
تم الكشف في: FBSDKLoginButton.h
tooltipColorStyle

Gets or sets the desired tooltip color style.

@property (assign, nonatomic) FBSDKTooltipColorStyle tooltipColorStyle;
تم الكشف في: FBSDKLoginButton.h
Typedefs
NS_ENUM

Indicates the desired login tooltip behavior.

typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) {
FBSDKLoginButtonTooltipBehaviorAutomatic = 0,
FBSDKLoginButtonTooltipBehaviorForceDisplay = 1,
FBSDKLoginButtonTooltipBehaviorDisable = 2
};
القيمة الثابتةالوصف
FBSDKLoginButtonTooltipBehaviorAutomatic

The default behavior. The tooltip will only be displayed if the app is eligible (determined by possible server round trip)

FBSDKLoginButtonTooltipBehaviorForceDisplay

Force display of the tooltip (typically for UI testing)

FBSDKLoginButtonTooltipBehaviorDisable

Force disable. In this case you can still exert more refined control by manually constructing a FBSDKLoginTooltipView instance.

Discussion:

FBSDKLoginButtonTooltipBehavior)

تم الكشف في: FBSDKLoginButton.h
NS_ENUM(NSUInteger,

Indicates the desired login tooltip behavior.

typedef NS_ENUM(NSUInteger, FBSDKLoginButtonTooltipBehavior) {
FBSDKLoginButtonTooltipBehaviorAutomatic = 0,
FBSDKLoginButtonTooltipBehaviorForceDisplay = 1,
FBSDKLoginButtonTooltipBehaviorDisable = 2
};
القيمة الثابتةالوصف
FBSDKLoginButtonTooltipBehaviorAutomatic

The default behavior. The tooltip will only be displayed if the app is eligible (determined by possible server round trip)

FBSDKLoginButtonTooltipBehaviorForceDisplay

Force display of the tooltip (typically for UI testing)

FBSDKLoginButtonTooltipBehaviorDisable

Force disable. In this case you can still exert more refined control by manually constructing a FBSDKLoginTooltipView instance.

Discussion:

FBSDKLoginButtonTooltipBehavior)

تم الكشف في: FBSDKLoginButton.h