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

FBUserSettingsDelegate

SDK Reference › iOS SDK › FBUserSettingsDelegate
FBUserSettingsDelegate
Extends Protocol: FBViewControllerDelegate
Declared in: FBUserSettingsDelegate.h
Overview

The FBUserSettingsDelegate protocol defines the methods called by a FBUserSettingsViewController.

Tasks
- loginViewController:receivedError:
- loginViewControllerDidLogUserIn:
- loginViewControllerDidLogUserOut:
- loginViewControllerWillAttemptToLogUserIn:
- loginViewControllerWillLogUserOut:
Instance Methods
loginViewController:receivedError:

Called if the view controller encounters an error while trying to log a user in.

- (void)loginViewController:(id)sender receivedError:(NSError *)error;
Parameter
sender

The view controller sending the message.

error

The error encountered.

Declared In
FBUserSettingsDelegate.h
loginViewControllerDidLogUserIn:

Called after the view controller successfully logged the user in in response to a button press.

- (void)loginViewControllerDidLogUserIn:(id)sender;
Parameter
sender

The view controller sending the message.

Declared In
FBUserSettingsDelegate.h
loginViewControllerDidLogUserOut:

Called after the view controller logged the user out in response to a button press.

- (void)loginViewControllerDidLogUserOut:(id)sender;
Parameter
sender

The view controller sending the message.

Declared In
FBUserSettingsDelegate.h
loginViewControllerWillAttemptToLogUserIn:

Called when the view controller will log the user in in response to a button press. Note that logging in can fail for a number of reasons, so there is no guarantee that this will be followed by a call to loginViewControllerDidLogUserIn:. Callers wanting more granular notification of the session state changes can use KVO or the NSNotificationCenter to observe them.

- (void)loginViewControllerWillAttemptToLogUserIn:(id)sender;
Parameter
sender

The view controller sending the message.

Declared In
FBUserSettingsDelegate.h
loginViewControllerWillLogUserOut:

Called when the view controller will log the user out in response to a button press.

- (void)loginViewControllerWillLogUserOut:(id)sender;
Parameter
sender

The view controller sending the message.

Declared In
FBUserSettingsDelegate.h

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