public static class WebDialog.FeedDialogBuilder extends Object
Constructor and Description |
---|
WebDialog.FeedDialogBuilder(Context context,
Session session)
Constructor.
|
WebDialog.FeedDialogBuilder(Context context,
Session session,
Bundle parameters)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
WebDialog.FeedDialogBuilder |
setCaption(String caption)
Sets the caption to be displayed.
|
WebDialog.FeedDialogBuilder |
setDescription(String description)
Sets the description to be displayed.
|
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 item 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, 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.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/.session
- the Session representing an authenticating user to use for
showing the dialog; must not be null, and must be opened.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