public class PagePostData extends Object
PageOperations.post(PagePostData)
.Constructor and Description |
---|
PagePostData(String pageId)
Creates a new
PagePostData . |
Modifier and Type | Method and Description |
---|---|
String |
getPageId() |
PagePostData |
link(String linkUrl,
String picture,
String name,
String caption,
String description) |
PagePostData |
message(String message) |
PagePostData |
place(String placeId) |
PagePostData |
tags(String... tags) |
MultiValueMap<String,Object> |
toRequestParameters() |
public PagePostData(String pageId)
PagePostData
.pageId
- The ID of the owner of the post.public String getPageId()
public PagePostData message(String message)
message
- A message for the post.public PagePostData 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 PagePostData place(String placeId)
placeId
- The ID of a place to associate with the post.public PagePostData tags(String... tags)
tags
- One or more Facebook user IDs to tag in the post. Will be ignored unless a place is specified.public MultiValueMap<String,Object> toRequestParameters()