Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
  • Facebook Login
  • Open Graph
  • Facebook APIs
  • Games
  • Media
  • Payments
  • App Center
  • Promote Your App
  • iOS
  • Android
  • Web
  • Technology Partners
  • Methods
    • Authentication
    • Dialog
    • Request
  • Protocols
    • FBDialogDelegate
    • FBRequestDelegate
    • FBSessionDelegate

Dialog

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.

Instance Methods


dialog:andDelegate:

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.


dialog:andParams:andDelegate:

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.

Updated over a year ago
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy