OpenGraphObject
이 클래스는 더 이상 최신 버전의 SDK에서 사용할 수 없습니다.
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

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()
Returns
The ID
setId(String)

Sets the ID of the object.

public void setId(String id)
매개변수설명
idThe ID
getType()

Gets the type of the object, which is a string in the form "mynamespace:mytype".

public String getType()
Returns
The type
setType(String)

Sets the type of the object, which is a string in the form "mynamespace:mytype".

public void setType(String type)
매개변수설명
typeThe type
getUrl()

Gets the URL associated with the Open Graph object.

public String getUrl()
Returns
The URL
setUrl(String)

Sets the URL associated with the Open Graph object.

public void setUrl(String url)
매개변수설명
urlThe URL
getTitle()

Gets the title of the Open Graph object.

public String getTitle()
Returns
The title
setTitle(String)

Sets the title of the Open Graph object.

public void setTitle(String title)
매개변수설명
titleThe title
getDescription()

Gets the description of the Open Graph object.

public String getDescription()
Returns
The description
setDescription(String)

Sets the description of the Open Graph Object

public void setDescription(String description)
매개변수설명
descriptionThe description
getImage()

Gets the images associated with the Open Graph object.

public GraphObjectList getImage()
Returns
The images
setImage(GraphObjectList)

Sets the images associated with the Open Graph object.

public void setImage(GraphObjectList images)
매개변수설명
imagesThe 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)
매개변수설명
urlsThe URLs
getVideo()

Gets the videos associated with the Open Graph object.

public GraphObjectList getVideo()
Returns
The videos
setVideo(GraphObjectList)

Sets the videos associated with the Open Graph object.

public void setVideo(GraphObjectList videos)
매개변수설명
videosThe videos
getAudio()

Gets the audio associated with the Open Graph object.

public GraphObjectList getAudio()
Returns
The audio
setAudio(GraphObjectList)

Sets the audio associated with the Open Graph object.

public void setAudio(GraphObjectList audios)
매개변수설명
audiosThe 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()
Returns
The determiner string
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)
매개변수설명
determinerThe determiner string
getSeeAlso()

Gets the list of related resources for the Open Graph object.

public List getSeeAlso()
Returns
A list of URLs of related resources
setSeeAlso(List)

Sets the list of related resources for the Open Graph object.

public void setSeeAlso(List seeAlso)
매개변수설명
seeAlsoA list of URLs of related resources
getSiteName()

Gets the name of the site hosting the Open Graph object, if any.

public String getSiteName()
Returns
The name of the site
setSiteName(String)

Sets the name of the site hosting the Open Graph object.

public void setSiteName(String siteName)
매개변수설명
siteNameThe name of the site
getCreatedTime()

Gets the date and time the Open Graph object was created.

public Date getCreatedTime()
Returns
The creation time
setCreatedTime(Date)

Sets the date and time the Open Graph object was created.

public void setCreatedTime(Date createdTime)
매개변수설명
createdTimeThe creation time
getUpdatedTime()

Gets the date and time the Open Graph object was last updated.

public Date getUpdatedTime()
Returns
The update time
setUpdatedTime(Date)

Sets the date and time the Open Graph object was last updated.

public void setUpdatedTime(Date updatedTime)
매개변수설명
updatedTimeThe update time
getApplication()

Gets the application that created this object.

public GraphObject getApplication()
Returns
The application
setApplication(GraphObject)

Sets the application that created this object.

public void setApplication(GraphObject application)
매개변수설명
applicationThe application
getIsScraped()

Gets whether the Open Graph object was created by scraping a Web resource or not.

public boolean getIsScraped()
Returns
True if the Open Graph object was created by scraping the Web, false if not
setIsScraped(boolean)

Sets whether the Open Graph object was created by scraping a Web resource or not.

public void setIsScraped(boolean isScraped)
매개변수설명
isScrapedTrue 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()
Returns
The ID of the post action, if any, or null
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)
매개변수설명
postActionIdThe 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()
Returns
A GraphObject containing the type-specific properties
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)
매개변수설명
dataA 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()
Returns
True if the native Share dialog should create the object as part of publishing an action, false if not
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)
매개변수설명
createObjectTrue if the native Share dialog should create the object as part of publishing an action, false if not