LuxChat  2.0
Instant messenger for iOS
Properties | List of all members
FBSDKLoginButton Class Reference

#import <FBSDKLoginButton.h>

Inheritance diagram for FBSDKLoginButton:
FBSDKButton

Properties

FBSDKDefaultAudience defaultAudience
 
IBOutlet id< FBSDKLoginButtonDelegatedelegate
 
FBSDKLoginBehavior loginBehavior
 
NSArray * publishPermissions
 
NSArray * readPermissions
 
FBSDKLoginButtonTooltipBehavior tooltipBehavior
 
FBSDKTooltipColorStyle tooltipColorStyle
 

Detailed Description

A button that initiates a log in or log out flow upon tapping. FBSDKLoginButton works with [FBSDKAccessToken currentAccessToken] to determine what to display, and automatically starts authentication when tapped (i.e., you do not need to manually subscribe action targets).

Like FBSDKLoginManager, you should make sure your app delegate is connected to FBSDKApplicationDelegate in order for the button's delegate to receive messages.

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

Property Documentation

- (FBSDKDefaultAudience) defaultAudience
readwritenonatomicassign

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

- (IBOutlet id<FBSDKLoginButtonDelegate>) delegate
readwritenonatomicweak

Gets or sets the delegate.

- (FBSDKLoginBehavior) loginBehavior
readwritenonatomicassign

Gets or sets the login behavior to use

- (NSArray*) publishPermissions
readwritenonatomiccopy

The publish permissions to request.

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.

- (NSArray*) readPermissions
readwritenonatomiccopy

The read permissions to request.

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.

- (FBSDKLoginButtonTooltipBehavior) tooltipBehavior
readwritenonatomicassign

Gets or sets the desired tooltip behavior.

- (FBSDKTooltipColorStyle) tooltipColorStyle
readwritenonatomicassign

Gets or sets the desired tooltip color style.


The documentation for this class was generated from the following file: