com.restfb.types
Class Photo

java.lang.Object
  extended by com.restfb.types.FacebookType
      extended by com.restfb.types.NamedFacebookType
          extended by com.restfb.types.Photo
All Implemented Interfaces:
Serializable

public class Photo
extends NamedFacebookType

Represents the Photo Graph API type.

Since:
1.5
Author:
Mark Allen
See Also:
Serialized Form

Nested Class Summary
static class Photo.Image
          Represents the Image Graph API type.
static class Photo.Tag
          Represents the Tag Graph API type.
 
Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
 
Constructor Summary
Photo()
           
 
Method Summary
 List<Comment> getComments()
          All of the comments on this photo.
 Date getCreatedTime()
          The time the photo was initially published.
 CategorizedFacebookType getFrom()
          An object containing the name and ID of the user who posted the photo.
 Integer getHeight()
          The height of the photo, in pixels.
 String getIcon()
          The icon-sized source of the photo.
 List<Photo.Image> getImages()
          The 4 different stored representations of the photo.
 List<NamedFacebookType> getLikes()
          Users who like the photo.
 String getLink()
          A link to the photo on Facebook.
 String getPicture()
          The album-sized view of the photo.
 Integer getPosition()
          The position of this photo in the album.
 String getSource()
          The full-sized source of the photo.
 List<Photo.Tag> getTags()
          An array containing the users and their positions in this photo.
 Date getUpdatedTime()
          The last time the photo or its caption was updated.
 Integer getWidth()
          The width of the photo, in pixels.
 
Methods inherited from class com.restfb.types.NamedFacebookType
getName
 
Methods inherited from class com.restfb.types.FacebookType
equals, getId, getMetadata, getType, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Photo

public Photo()
Method Detail

getFrom

public CategorizedFacebookType getFrom()
An object containing the name and ID of the user who posted the photo.

Returns:
An object containing the name and ID of the user who posted the photo.

getPicture

public String getPicture()
The album-sized view of the photo.

Returns:
The album-sized view of the photo.

getSource

public String getSource()
The full-sized source of the photo.

Returns:
The full-sized source of the photo.

getHeight

public Integer getHeight()
The height of the photo, in pixels.

Returns:
The height of the photo, in pixels.

getWidth

public Integer getWidth()
The width of the photo, in pixels.

Returns:
The width of the photo, in pixels.

getLink

public String getLink()
A link to the photo on Facebook.

Returns:
A link to the photo on Facebook.

getIcon

public String getIcon()
The icon-sized source of the photo.

Returns:
The icon-sized source of the photo.

getPosition

public Integer getPosition()
The position of this photo in the album.

Returns:
The position of this photo in the album.
Since:
1.6.5

getCreatedTime

public Date getCreatedTime()
The time the photo was initially published.

Returns:
The time the photo was initially published.

getUpdatedTime

public Date getUpdatedTime()
The last time the photo or its caption was updated.

Returns:
The last time the photo or its caption was updated.

getTags

public List<Photo.Tag> getTags()
An array containing the users and their positions in this photo. The x and y coordinates are percentages from the left and top edges of the photo, respectively.

Returns:
An array containing the users and their positions in this photo. The x and y coordinates are percentages from the left and top edges of the photo, respectively.

getComments

public List<Comment> getComments()
All of the comments on this photo.

Returns:
All of the comments on this photo.
Since:
1.6.5

getLikes

public List<NamedFacebookType> getLikes()
Users who like the photo.

Returns:
Users who like the photo.
Since:
1.6.5

getImages

public List<Photo.Image> getImages()
The 4 different stored representations of the photo.

Returns:
The 4 different stored representations of the photo.
Since:
1.6.5


RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.