FBLoginView
В последней версии SDK этот класс не доступен.
Доступна более новая версия данного класса. Посетите текущую версию.

FBLoginView is a custom UIView that renders a button to login or logout based on the state of FBSession.activeSession

Discussion:

This view is closely associated with FBSession.activeSession. Upon initialization, it will attempt to open an active session without UI if the current active session is not open.

The FBLoginView instance also monitors for changes to the active session.

Inherits from:UIView
Declared in:FBLoginView.h
Свойства
defaultAudience

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

@property (nonatomic, assign) FBSessionDefaultAudience defaultAudience;
Объявлен в: FBLoginView.h
delegate

The delegate object that receives updates for selection and display control.

@property (nonatomic, assign) IBOutlet id<FBLoginViewDelegate> delegate;
Объявлен в: FBLoginView.h
permissions

The permissions to login with. Defaults to nil, meaning basic permissions.

@property (readwrite, copy) NSArray *permissions __attribute__((deprecated
Discussion:

Methods and properties that specify permissions without a read or publish qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred.

Объявлен в: FBLoginView.h
publishPermissions

The publish permissions to request if the user logs in via this view.

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

Note, that a defaultAudience value of FBSessionDefaultAudienceOnlyMe, FBSessionDefaultAudienceEveryone, or FBSessionDefaultAudienceFriends should be set if publish permissions are specified. Additionally, when publish permissions are specified, then read should not be specified.

Объявлен в: FBLoginView.h
readPermissions

The read permissions to request if the user logs in via this view. The basic_info permission must be explicitly requested at first login, and is no longer inferred, (subject to an active migration.)

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

Note, that if read permissions are specified, then publish permissions should not be specified.

Объявлен в: FBLoginView.h
Методы экземпляров
init

Initializes and returns an FBLoginView object. The underlying session has basic permissions granted to it.

- (id) init;
Объявлен в: FBLoginView.h
initWithPermissions:

Initializes and returns an FBLoginView object constructed with the specified permissions.

ПараметрОписание
permissions

An array of strings representing the permissions to request during the authentication flow. A value of nil will indicates basic permissions.

- (id) initWithPermissions:(NSArray *)permissions __attribute__((deprecated));
Discussion:

Methods and properties that specify permissions without a read or publish qualification are deprecated; use of a read-qualified or publish-qualified alternative is preferred.

Объявлен в: FBLoginView.h
initWithPublishPermissions:defaultAudience:

Initializes and returns an FBLoginView object constructed with the specified permissions.

ПараметрОписание
publishPermissions

An array of strings representing the publish permissions to request during the authentication flow.

defaultAudience

An audience for published posts; note that FBSessionDefaultAudienceNone is not valid for permission requests that include publish or manage permissions.

- (id)
initWithPublishPermissions: (NSArray *)publishPermissions
defaultAudience: (FBSessionDefaultAudience)defaultAudience;
Объявлен в: FBLoginView.h
initWithReadPermissions:

Initializes and returns an FBLoginView object constructed with the specified permissions.

ПараметрОписание
readPermissions

An array of strings representing the read permissions to request during the authentication flow. A value of nil will indicates basic permissions.

- (id) initWithReadPermissions:(NSArray *)readPermissions;
Объявлен в: FBLoginView.h