public class PostData extends Object
FeedOperations.post(PostData).| Constructor and Description |
|---|
PostData(String targetFeedId)
Creates a new
PostData. |
| Modifier and Type | Method and Description |
|---|---|
PostData |
allow(String... allow) |
PostData |
caption(String caption) |
PostData |
deny(String... deny) |
PostData |
description(String description) |
String |
getTargetFeedId() |
PostData |
link(String linkUrl) |
PostData |
message(String message) |
PostData |
name(String name) |
PostData |
picture(String picture) |
PostData |
place(String placeId) |
PostData |
privacy(Post.Privacy privacy) |
PostData |
tags(String... tags) |
MultiValueMap<String,Object> |
toRequestParameters() |
public String getTargetFeedId()
public PostData message(String message)
message - A message for the post.public PostData link(String linkUrl)
linkUrl - A link to include in the post.public PostData name(String name)
name - A name (e.g., title) for the post.public PostData caption(String caption)
caption - A caption for the post.public PostData description(String description)
description - A description of the post.public PostData place(String placeId)
placeId - The ID of a place to associate with the post.public PostData tags(String... tags)
tags - One or more Facebook user IDs to tag in the post. Will be ignored unless a place is specified.public PostData picture(String picture)
picture - The URL to a picture to embed in the postpublic PostData privacy(Post.Privacy privacy)
privacy - The privacy setting for the post. If CUSTOM, then you must also set at least one of allow() or deny().public PostData allow(String... allow)
allow - One or more Facebook User IDs and friend list IDs that can see the post. Ignored unless privacy is CUSTOM.public PostData deny(String... deny)
deny - One or more Facebook User IDs and friend list IDs that cannot see the post. Ignored unless privacy is CUSTOM.public MultiValueMap<String,Object> toRequestParameters()