Provides a strongly-typed representation of an Open Graph Object. For more documentation of OG Objects, see: https://developers.facebook.com/docs/opengraph/using-object-api/
Note that this interface is intended to be used with GraphObject.Factory or OpenGraphObject.Factory and not implemented directly.
実装: | GraphObject |
パッケージ: | model |
getId()
Gets the ID of the object.
public String getId()
setId(String)
Sets the ID of the object.
public void setId(String id)
パラメーター | 説明 |
---|---|
id | The ID |
getType()
Gets the type of the object, which is a string in the form "mynamespace:mytype".
public String getType()
setType(String)
Sets the type of the object, which is a string in the form "mynamespace:mytype".
public void setType(String type)
パラメーター | 説明 |
---|---|
type | The type |
getUrl()
Gets the URL associated with the Open Graph object.
public String getUrl()
setUrl(String)
Sets the URL associated with the Open Graph object.
public void setUrl(String url)
パラメーター | 説明 |
---|---|
url | The URL |
getTitle()
Gets the title of the Open Graph object.
public String getTitle()
setTitle(String)
Sets the title of the Open Graph object.
public void setTitle(String title)
パラメーター | 説明 |
---|---|
title | The title |
getDescription()
Gets the description of the Open Graph object.
public String getDescription()
setDescription(String)
Sets the description of the Open Graph Object
public void setDescription(String description)
パラメーター | 説明 |
---|---|
description | The description |
getImage()
Gets the images associated with the Open Graph object.
public GraphObjectList getImage()
setImage(GraphObjectList)
Sets the images associated with the Open Graph object.
public void setImage(GraphObjectList images)
パラメーター | 説明 |
---|---|
images | The images |
setImageUrls(List)
Sets the images associated with the Open Graph object by specifying their URLs. This is a helper that will create GraphObjects with the correct URLs and populate the property with those objects.
public void setImageUrls(List urls)
パラメーター | 説明 |
---|---|
urls | The URLs |
getVideo()
Gets the videos associated with the Open Graph object.
public GraphObjectList getVideo()
setVideo(GraphObjectList)
Sets the videos associated with the Open Graph object.
public void setVideo(GraphObjectList videos)
パラメーター | 説明 |
---|---|
videos | The videos |
getAudio()
Gets the audio associated with the Open Graph object.
public GraphObjectList getAudio()
setAudio(GraphObjectList)
Sets the audio associated with the Open Graph object.
public void setAudio(GraphObjectList audios)
パラメーター | 説明 |
---|---|
audios | The audio |
getDeterminer()
Gets the "determiner" for the Open Graph object. This is the word such as "a", "an", or "the" that will appear before the title of the object.
public String getDeterminer()
setDeterminer(String)
Sets the "determiner" for the Open Graph object. This is the word such as "a", "an", or "the" that will appear before the title of the object.
public void setDeterminer(String determiner)
パラメーター | 説明 |
---|---|
determiner | The determiner string |
getSeeAlso()
Gets the list of related resources for the Open Graph object.
public List getSeeAlso()
setSeeAlso(List)
Sets the list of related resources for the Open Graph object.
public void setSeeAlso(List seeAlso)
パラメーター | 説明 |
---|---|
seeAlso | A list of URLs of related resources |
getSiteName()
Gets the name of the site hosting the Open Graph object, if any.
public String getSiteName()
setSiteName(String)
Sets the name of the site hosting the Open Graph object.
public void setSiteName(String siteName)
パラメーター | 説明 |
---|---|
siteName | The name of the site |
getCreatedTime()
Gets the date and time the Open Graph object was created.
public Date getCreatedTime()
setCreatedTime(Date)
Sets the date and time the Open Graph object was created.
public void setCreatedTime(Date createdTime)
パラメーター | 説明 |
---|---|
createdTime | The creation time |
getUpdatedTime()
Gets the date and time the Open Graph object was last updated.
public Date getUpdatedTime()
setUpdatedTime(Date)
Sets the date and time the Open Graph object was last updated.
public void setUpdatedTime(Date updatedTime)
パラメーター | 説明 |
---|---|
updatedTime | The update time |
getApplication()
Gets the application that created this object.
public GraphObject getApplication()
setApplication(GraphObject)
Sets the application that created this object.
public void setApplication(GraphObject application)
パラメーター | 説明 |
---|---|
application | The application |
getIsScraped()
Gets whether the Open Graph object was created by scraping a Web resource or not.
public boolean getIsScraped()
setIsScraped(boolean)
Sets whether the Open Graph object was created by scraping a Web resource or not.
public void setIsScraped(boolean isScraped)
パラメーター | 説明 |
---|---|
isScraped | True if the Open Graph object was created by scraping the Web, false if not |
getPostActionId()
Gets the Open Graph action which was created when this Open Graph action was posted, if it is a user-owned object, otherwise null. The post action controls the privacy of this object.
public String getPostActionId()
setPostActionId(String)
Sets the Open Graph action which was created when this Open Graph action was posted, if it is a user-owned object, otherwise null. The post action controls the privacy of this object.
public void setPostActionId(String postActionId)
パラメーター | 説明 |
---|---|
postActionId | The ID of the post action, if any, or null |
getData()
Gets the type-specific properties of the Open Graph object, if any. Any custom properties that are defined on an application-defined Open Graph object type will appear here.
public GraphObject getData()
setData(GraphObject)
Sets the type-specific properties of the Open Graph object, if any. Any custom properties that are defined on an application-defined Open Graph object type will appear here.
public void setData(GraphObject data)
パラメーター | 説明 |
---|---|
data | A GraphObject containing the type-specific properties |
getCreateObject()
Gets whether the object represents a new object that should be created as part of publishing via, e.g., the native Share dialog. This flag has no effect on explicit publishing of an action via, e.g., a POST to the '/me/objects/object_type' endpoint.
public boolean getCreateObject()
setCreateObject(boolean)
Sets whether the object represents a new object that should be created as part of publishing via, e.g., the native Share dialog. This flag has no effect on explicit publishing of an action via, e.g., a POST to the '/me/objects/object_type' endpoint.
public void setCreateObject(boolean createObject)
パラメーター | 説明 |
---|---|
createObject | True if the native Share dialog should create the object as part of publishing an action, false if not |