The FBLoginViewDelegate
protocol defines the methods used to receive event
notifications from FBLoginView
objects.
Please note: Since FBLoginView observes the active session, using multiple FBLoginView instances in different parts of your app can result in each instance's delegates being notified of changes for one event.
Extends Protocol: | NSObject |
Declared in: | FBLoginView.h |
loginView:handleError:
Tells the delegate that there is a communication or authorization error.
Parameter | Description |
---|---|
loginView | The login view that transitioned its view mode |
error | An error object containing details of the error. |
- (void)
loginView: | (FBLoginView *)loginView |
handleError: | (NSError *)error; |
See https://developers.facebook.com/docs/technical-guides/iossdk/errors/ for error handling best practices.
FBLoginView.h
loginViewFetchedUserInfo:user:
Tells the delegate that the view is has now fetched user info
Parameter | Description |
---|---|
loginView | The login view that transitioned its view mode |
user | The user info object describing the logged in user |
- (void)
loginViewFetchedUserInfo: | (FBLoginView *)loginView |
user: | (id<FBGraphUser>)user; |
FBLoginView.h
loginViewShowingLoggedInUser:
Tells the delegate that the view is now in logged in mode
Parameter | Description |
---|---|
loginView | The login view that transitioned its view mode |
- (void)
loginViewShowingLoggedInUser:(FBLoginView *)loginView;
FBLoginView.h
loginViewShowingLoggedOutUser:
Tells the delegate that the view is now in logged out mode
Parameter | Description |
---|---|
loginView | The login view that transitioned its view mode |
- (void)
loginViewShowingLoggedOutUser:(FBLoginView *)loginView;
FBLoginView.h