com.facebook.widget
Class WebDialog.RequestsDialogBuilder

java.lang.Object
  extended by com.facebook.widget.WebDialog.RequestsDialogBuilder
Enclosing class:
WebDialog

public static class WebDialog.RequestsDialogBuilder
extends Object

Provides a builder that allows construction of the parameters for showing the Feed Dialog (https://developers.facebook.com/docs/reference/dialogs/feed/).


Constructor Summary
WebDialog.RequestsDialogBuilder(Context context, Session session)
          Constructor.
WebDialog.RequestsDialogBuilder(Context context, Session session, Bundle parameters)
          Constructor.
 
Method Summary
 WebDialog.RequestsDialogBuilder setData(String data)
          Sets optional data which can be used for tracking; maximum length is 255 characters.
 WebDialog.RequestsDialogBuilder setMessage(String message)
          Sets the string users receiving the request will see.
 WebDialog.RequestsDialogBuilder setTitle(String title)
          Sets an optional title for the dialog; maximum length is 50 characters.
 WebDialog.RequestsDialogBuilder setTo(String id)
          Sets the user ID or user name the request will be sent to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDialog.RequestsDialogBuilder

public WebDialog.RequestsDialogBuilder(Context context,
                                       Session session)
Constructor.

Parameters:
context - the Context within which the dialog will be shown.
session - the Session representing an authenticating user to use for showing the dialog; must not be null, and must be opened.

WebDialog.RequestsDialogBuilder

public WebDialog.RequestsDialogBuilder(Context context,
                                       Session session,
                                       Bundle parameters)
Constructor.

Parameters:
context - the Context within which the dialog will be shown.
parameters - a Bundle containing parameters to pass as part of the dialog URL. No validation is done on these parameters; it is the caller's responsibility to ensure they are valid.
session - the Session representing an authenticating user to use for showing the dialog; must not be null, and must be opened.
Method Detail

setMessage

public WebDialog.RequestsDialogBuilder setMessage(String message)
Sets the string users receiving the request will see. The maximum length is 60 characters.

Parameters:
message - the message
Returns:
the builder

setTo

public WebDialog.RequestsDialogBuilder setTo(String id)
Sets the user ID or user name the request will be sent to. If this is not specified, a friend selector will be displayed and the user can select up to 50 friends.

Parameters:
id - the id or user name to send the request to
Returns:
the builder

setData

public WebDialog.RequestsDialogBuilder setData(String data)
Sets optional data which can be used for tracking; maximum length is 255 characters.

Parameters:
data - the data
Returns:
the builder

setTitle

public WebDialog.RequestsDialogBuilder setTitle(String title)
Sets an optional title for the dialog; maximum length is 50 characters.

Parameters:
title - the title
Returns:
the builder