FBWebDialogsDelegate
最新版的 SDK 已不支持此类。
这个类有新版本。查看 最新版本。

The FBWebDialogsDelegate protocol enables the plugging of advanced behaviors into the presentation flow of a Facebook web dialog. Advanced uses include modification of parameters and application-level handling of links on the dialog. The FBFrictionlessRequestFriendCache class implements this protocol to add frictionless behaviors to a presentation of the request dialog.

Extends Protocol:NSObject
Declared in:FBWebDialogs.h
实例方法
webDialogsDialog:parameters:session:shouldAutoHandleURL:

Called when the user of a dialog clicks a link that would cause a transition away from the application. Your application may handle this method, and return NO if the URL handling will be performed by the application.

参数描述
dialog

A string representing the method or dialog name of the dialog being presented.

parameters

A dictionary of parameters which were sent to the dialog.

session

The session object to use with the dialog.

url

The url in question, which will not be handled by the SDK if this method NO

- (BOOL)
webDialogsDialog: (NSString *)dialog
parameters: (NSDictionary *)parameters
session: (FBSession *)session
shouldAutoHandleURL: (NSURL *)url;
声明语言: FBWebDialogs.h
webDialogsWillDismissDialog:parameters:session:result:url:error:

Called when the dialog is about to be dismissed

参数描述
dialog

A string representing the method or dialog name of the dialog being presented.

parameters

A dictionary of parameters which were sent to the dialog.

session

The session object to use with the dialog.

result

A pointer to a result, which may be read or changed by the handling method as needed

url

A pointer to a pointer to a URL representing the URL returned by the dialog, which may be read or changed by this mehthod

error

A pointer to a pointer to an error object which may be read or changed by this method as needed

- (void)
webDialogsWillDismissDialog: (NSString *)dialog
parameters: (NSDictionary *)parameters
session: (FBSession *)session
result: (FBWebDialogResult *)result
url: (NSURL **)url
error: (NSError **)error;
声明语言: FBWebDialogs.h
webDialogsWillPresentDialog:parameters:session:

Called prior to the presentation of a web dialog

参数描述
dialog

A string representing the method or dialog name of the dialog being presented.

parameters

A mutable dictionary of parameters which will be sent to the dialog.

session

The session object to use with the dialog.

- (void)
webDialogsWillPresentDialog: (NSString *)dialog
parameters: (NSMutableDictionary *)parameters
session: (FBSession *)session;
声明语言: FBWebDialogs.h