Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
  • Facebook Login
  • Open Graph
  • Facebook APIs
  • Games
  • Payments
  • App Center
  • Promote Your App
  • iOS
    • Getting Started
    • Concepts
    • Reference
  • Android
  • JavaScript
  • PHP
  • More SDKs
  • Class References
    • FBCacheDescriptor
    • FBFriendPickerViewController
    • FBGraphObject
    • FBLoginView
    • FBPlacePickerViewController
    • FBProfilePictureView
    • FBRequest
    • FBRequestConnection
    • FBSession
    • FBSessionTokenCachingStrategy
    • FBTestSession
    • FBUserSettingsViewController
    • FBViewController
  • Protocol References
    • FBFriendPickerDelegate
    • FBGraphLocation
    • FBGraphObject
    • FBGraphPlace
    • FBGraphUser
    • FBLoginViewDelegate
    • FBOpenGraphAction
    • FBPlacePickerDelegate
    • FBUserSettingsDelegate
    • FBViewControllerDelegate
  • Other References
    • FBError
    • FBSettings

FBLoginView

SDK Reference › iOS SDK › FBLoginView
FBLoginView
Inherits from: UIView
Declared in: FBLoginView.h
Tasks
delegate property
permissions property
style property
- init
- initWithPermissions:
FBLoginViewLoggedInDisplayStyle enum typedef
FBLoginViewStyle typedef
Properties
delegate

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

@property (nonatomic, assign) id<FBLoginViewDelegate> delegate;
Declared In
FBLoginView.h
permissions

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

@property (readwrite, copy) NSArray *permissions;
Discussion

copy) NSArray *permissions;

Declared In
FBLoginView.h
style

The display style for the login view.

@property (nonatomic) FBLoginViewStyle style;
Declared In
FBLoginView.h
Instance Methods
init

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

- (id)init;
Declared In
FBLoginView.h
initWithPermissions:

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

- (id)initWithPermissions:(NSArray *)permissions;
Parameter
permissions

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

Declared In
FBLoginView.h
Typedefs
FBLoginViewLoggedInDisplayStyle enum

Type used to specify the display style of the button.

typedef enum {
FBLoginViewStyleSquareSmall = 0,
FBLoginViewStyleSquareLarge = 1,
FBLoginViewStyleHorizontal = 2,
} FBLoginViewStyle;
Constants
FBLoginViewStyleSquareSmall

Small square profile image and facebook icon overlayed

FBLoginViewStyleSquareLarge

Large square profile image and facebook icon overlayed

FBLoginViewStyleHorizontal

Facebook image and profile image side-by-side

Discussion
Declared In
FBLoginView.h
FBLoginViewStyle

Type used to specify the display style of the button.

typedef enum {
FBLoginViewStyleSquareSmall = 0,
FBLoginViewStyleSquareLarge = 1,
FBLoginViewStyleHorizontal = 2,
} FBLoginViewStyle;
Constants
FBLoginViewStyleSquareSmall

Small square profile image and facebook icon overlayed

FBLoginViewStyleSquareLarge

Large square profile image and facebook icon overlayed

FBLoginViewStyleHorizontal

Facebook image and profile image side-by-side

Discussion
Declared In
FBLoginView.h

Last Updated: November 19, 2012
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy