FBUserSettingsDelegate
คลาสนี้ไม่มีให้ใช้งานใน SDK เวอร์ชั่นล่าสุดอีกต่อไป
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

The FBUserSettingsDelegate protocol defines the methods called by a FBUserSettingsViewController.

Extends Protocol:FBViewControllerDelegate
Declared in:FBUserSettingsViewController.h
วิธีการทันใจ
loginViewController:receivedError:

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

พารามิเตอร์คำอธิบาย
sender

The view controller sending the message.

error

The error encountered.

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

See https://developers.facebook.com/docs/technical-guides/iossdk/errors/ for error handling best practices.

ให้คำรับรองไว้ใน: FBUserSettingsViewController.h
loginViewControllerDidLogUserIn:

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

พารามิเตอร์คำอธิบาย
sender

The view controller sending the message.

- (void) loginViewControllerDidLogUserIn:(id)sender;
ให้คำรับรองไว้ใน: FBUserSettingsViewController.h
loginViewControllerDidLogUserOut:

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

พารามิเตอร์คำอธิบาย
sender

The view controller sending the message.

- (void) loginViewControllerDidLogUserOut:(id)sender;
ให้คำรับรองไว้ใน: FBUserSettingsViewController.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.

พารามิเตอร์คำอธิบาย
sender

The view controller sending the message.

- (void) loginViewControllerWillAttemptToLogUserIn:(id)sender;
ให้คำรับรองไว้ใน: FBUserSettingsViewController.h
loginViewControllerWillLogUserOut:

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

พารามิเตอร์คำอธิบาย
sender

The view controller sending the message.

- (void) loginViewControllerWillLogUserOut:(id)sender;
ให้คำรับรองไว้ใน: FBUserSettingsViewController.h