com.facebook.widget
Class WebDialog.Builder
java.lang.Object
com.facebook.widget.WebDialog.Builder
- Enclosing class:
- WebDialog
public static class WebDialog.Builder
- extends Object
Provides a builder that allows construction of an arbitary Facebook web dialog.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebDialog.Builder
public WebDialog.Builder(Context context,
Session session,
String action,
Bundle parameters)
- Constructor that builds a dialog for an authenticated user.
- 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.action
- the portion of the dialog URL following www.facebook.com/dialog/.
See https://developers.facebook.com/docs/reference/dialogs/ for details.parameters
- a Bundle containing parameters to pass as part of the URL.
WebDialog.Builder
public WebDialog.Builder(Context context,
String applicationId,
String action,
Bundle parameters)
- Constructor that builds a dialog without an authenticated user.
- Parameters:
context
- the Context within which the dialog will be shown.applicationId
- the application ID to be included in the dialog URL.action
- the portion of the dialog URL following www.facebook.com/dialog/.
See https://developers.facebook.com/docs/reference/dialogs/ for details.parameters
- a Bundle containing parameters to pass as part of the URL.