The dialog methods used in the Facebook iOS SDK. These are defined in Facebook.h.
You implement these methods to generate a Facebook Platform dialog.
Call this method to generate a UI dialog for the desired action.
- (void)dialog:(NSString *)action
andDelegate:(id<FBDialogDelegate>)delegate;
Parameters
action - The type of dialog to call. Currently supported methods are oauth, feed, and apprequests.
delegate - The receiver's delegate or nil if it doesn't have a delegate. See FBRequestDelegate for information on the delegate protocol.
Notes
You call this method to set up the dialog for a method. You should set up your delegate to handle the scenarios where the dialog succeeds, is cancelled by the user, as well as any error scenarios.
Call this method to generate a UI dialog for the desired method and additional parameters.
- (void)dialog:(NSString *)action
andParams:(NSMutableDictionary *)params
andDelegate:(id <FBDialogDelegate>)delegate;
Parameters
action - The type of dialog to call. Currently supported methods are oauth, feed, and apprequests.
params - Key-value string pairs representing parameters specific to a particular dialog.
delegate - The receiver's delegate or nil if it doesn't have a delegate. See FBRequestDelegate for information on the delegate protocol.
Notes
You should call this dialog if the method you are calling requires parameters to set up the dialog. You should set up your delegate to handle the scenarios where the dialog succeeds, is cancelled by the user, as well as any error scenarios.