public static class WebDialog.FeedDialogBuilder extends Object
Constructor and Description |
---|
WebDialog.FeedDialogBuilder(Context context)
Constructor that builds a Feed Dialog using either the active session, or the application
ID specified in the application/meta-data.
|
WebDialog.FeedDialogBuilder(Context context,
Session session)
Constructor that builds a Feed Dialog using the provided session.
|
WebDialog.FeedDialogBuilder(Context context,
Session session,
Bundle parameters)
Constructor that builds a Feed Dialog using the provided session and parameters.
|
WebDialog.FeedDialogBuilder(Context context,
String applicationId,
Bundle parameters)
Constructor that builds a Feed Dialog using the provided application ID and parameters.
|
Modifier and Type | Method and Description |
---|---|
WebDialog.FeedDialogBuilder |
setCaption(String caption)
Sets the caption of the URL being shared.
|
WebDialog.FeedDialogBuilder |
setDescription(String description)
Sets the description of the URL being shared.
|
WebDialog.FeedDialogBuilder |
setFrom(String id)
Sets the ID of the profile that is posting to Facebook.
|
WebDialog.FeedDialogBuilder |
setLink(String link)
Sets the URL of a link to be shared.
|
WebDialog.FeedDialogBuilder |
setName(String name)
Sets the name of the URL being shared.
|
WebDialog.FeedDialogBuilder |
setPicture(String picture)
Sets the URL of a picture to be shared.
|
WebDialog.FeedDialogBuilder |
setSource(String source)
Sets the URL of a media file attached to this post.
|
WebDialog.FeedDialogBuilder |
setTo(String id)
Sets the ID of the profile that the story will be published to.
|
public WebDialog.FeedDialogBuilder(Context context)
context
- the Context within which the dialog will be shown.public WebDialog.FeedDialogBuilder(Context context, Session session)
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.public WebDialog.FeedDialogBuilder(Context context, Session session, Bundle 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.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. For more information,
see
https://developers.facebook.com/docs/reference/dialogs/feed/.public WebDialog.FeedDialogBuilder(Context context, String applicationId, Bundle parameters)
context
- the Context within which the dialog will be shown.applicationId
- the application ID to use. If null, the application ID specified in the
application/meta-data will be used instead.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. For more information,
see
https://developers.facebook.com/docs/reference/dialogs/feed/.public WebDialog.FeedDialogBuilder setFrom(String id)
id
- Facebook ID of the profile to post frompublic WebDialog.FeedDialogBuilder setTo(String id)
id
- Facebook ID of the profile to post topublic WebDialog.FeedDialogBuilder setLink(String link)
link
- the URLpublic WebDialog.FeedDialogBuilder setPicture(String picture)
picture
- the URL of the picturepublic WebDialog.FeedDialogBuilder setSource(String source)
source
- the URL of the media filepublic WebDialog.FeedDialogBuilder setName(String name)
name
- the namepublic WebDialog.FeedDialogBuilder setCaption(String caption)
caption
- the captionpublic WebDialog.FeedDialogBuilder setDescription(String description)
description
- the description