Android SDK Version
  • java.lang.Object
    • com.facebook.share.model.ShareContent.Builder<P,E>
Constructor Summary
Constructor and Description
Builder() 
Method Summary
Modifier and TypeMethod and Description
EreadFrom(P content)
Reads the values from a ShareModel into the builder.
EsetContentUrl(Uri contentUrl)
Set the URL for the content being shared.
EsetPageId(java.lang.String pageId)
Set the Id of the Facebook page this share is associated with.
EsetPeopleIds(java.util.List<java.lang.String> peopleIds)
Set the list of Ids for taggable people to tag with this content.
EsetPlaceId(java.lang.String placeId)
Set the Id for a place to tag with this content.
EsetRef(java.lang.String ref)
Set the value to be added to the referrer URL when a person follows a link from this shared content on feed.
EsetShareHashtag(ShareHashtag shareHashtag)
Set the ShareHashtag for this content
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.facebook.share.
build
Constructor Detail

Builder

public Builder()
Method Detail

setContentUrl

public E setContentUrl(Uri contentUrl)
Set the URL for the content being shared.
Parameters:
contentUrl - android.net.Uri representation of the content link.
Returns:
The builder.

setPeopleIds

public E setPeopleIds(java.util.List<java.lang.String> peopleIds)
Set the list of Ids for taggable people to tag with this content.
Parameters:
peopleIds - List of Ids for people to tag.
Returns:
The builder.

setPlaceId

public E setPlaceId(java.lang.String placeId)
Set the Id for a place to tag with this content.
Parameters:
placeId - The Id for the place to tag.
Returns:
The builder.

setPageId

public E setPageId(java.lang.String pageId)
Set the Id of the Facebook page this share is associated with.
Parameters:
pageId - The Id for the Page
Returns:
The builder

setRef

public E setRef(java.lang.String ref)
Set the value to be added to the referrer URL when a person follows a link from this shared content on feed.
Parameters:
ref - The ref for the content.
Returns:
The builder.

setShareHashtag

public E setShareHashtag(ShareHashtag shareHashtag)
Set the ShareHashtag for this content
Parameters:
shareHashtag - The hashtag for this content
Returns:
The builder

readFrom

public E readFrom(P content)
Description copied from interface: ShareModelBuilder
Reads the values from a ShareModel into the builder.
Specified by:
Parameters:
content - The source ShareModel
Returns:
The builder.