FBLoginViewDelegate
最新版本的 SDK 已不再提供此課程。
有此級別的更新版本。前往查看 最新版本。

The FBLoginViewDelegate protocol defines the methods used to receive event notifications from FBLoginView objects.

Extends Protocol:NSObject
Declared in:FBLoginView.h
執行個體方法
loginView:handleError:

Tells the delegate that there is a communication or authorization error.

參數說明
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;
Discussion:

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

參數說明
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

參數說明
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

參數說明
loginView

The login view that transitioned its view mode

- (void) loginViewShowingLoggedOutUser:(FBLoginView *)loginView;
宣告於: FBLoginView.h