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