Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

Commit

Permalink
Added the missing option of publishing story by using object that is …
Browse files Browse the repository at this point in the history
…located on Facebook servers
  • Loading branch information
sromku committed Jun 23, 2014
1 parent 4a3d1b8 commit 6844669
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Simple Facebook/src/com/sromku/simple/fb/entities/Story.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ private StoryObject(Builder builder) {
mType = namespace + ":" + builder.noun;
mNoun = builder.noun;
mTitle = builder.title;
mId = builder.id;
mUrl = builder.url;
mDescription = builder.description;
mData = builder.data;
Expand Down Expand Up @@ -296,6 +297,7 @@ public Object getCustomData(String param) {

public static class Builder {

private String id;
private String noun;
private String url;
private String image;
Expand Down Expand Up @@ -329,6 +331,17 @@ public Builder setUrl(String url) {
this.url = url;
return this;
}

/**
* Set the id of the object that was created on facebook servers.
*
* @param id The object id
* @return {@link Builder}
*/
public Builder setId(String id) {
this.id = id;
return this;
}

/**
* Set image url of the object
Expand Down

0 comments on commit 6844669

Please sign in to comment.