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 |
deny(String... deny) |
String |
getTargetFeedId() |
PostData |
link(String linkUrl,
String picture,
String name,
String caption,
String description) |
PostData |
message(String message) |
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, String picture, String name, String caption, String description)
linkUrl
- A link to include in the post.picture
- A preview image associated with the link. May be null.name
- Overwrites the title of the link preview. May be null.caption
- Overwrites the caption of the link preview. May be null.description
- Overwrites the caption of hte link preview. May be null.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 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()