org.springframework.social.facebook.api
Class Photo

java.lang.Object
  extended by org.springframework.social.facebook.api.FacebookObject
      extended by org.springframework.social.facebook.api.Photo

public class Photo
extends FacebookObject

Model class representing a photo.


Nested Class Summary
static class Photo.Image
           
 
Method Summary
 Photo.Image getAlbumImage()
          Deprecated. With July 2013 breaking changes, Facebook will no longer return images larger than the original image. Therefore, there's no way of knowing what sized images will or won't be in the image list.
 Date getCreatedTime()
           
 Reference getFrom()
           
 String getIcon()
           
 String getId()
           
 List<Photo.Image> getImages()
           
 String getLink()
           
 String getName()
           
 Photo.Image getOversizedImage()
          Deprecated. With July 2013 breaking changes, Facebook will no longer return images larger than the original image. Therefore, there's no way of knowing what sized images will or won't be in the image list.
 String getPicture()
           
 Integer getPosition()
          Deprecated. On September 5, 2012, Facebook will either stop returning a position property on Photo objects or will only return 0. This method will be removed in Spring Social Facebook 1.1.0.
 Photo.Image getSmallImage()
          Deprecated. With July 2013 breaking changes, Facebook will no longer return images larger than the original image. Therefore, there's no way of knowing what sized images will or won't be in the image list.
 String getSource()
           
 Photo.Image getSourceImage()
          Deprecated. With July 2013 breaking changes, Facebook will no longer return images larger than the original image. Therefore, there's no way of knowing what sized images will or won't be in the image list.
 List<Tag> getTags()
           
 Photo.Image getTinyImage()
          Deprecated. With July 2013 breaking changes, Facebook will no longer return images larger than the original image. Therefore, there's no way of knowing what sized images will or won't be in the image list.
 Date getUpdatedTime()
           
 
Methods inherited from class org.springframework.social.facebook.api.FacebookObject
add, getExtraData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public String getId()

getName

public String getName()

getFrom

public Reference getFrom()

getPicture

public String getPicture()

getSource

public String getSource()

getLink

public String getLink()

getIcon

public String getIcon()

getPosition

@Deprecated
public Integer getPosition()
Deprecated. On September 5, 2012, Facebook will either stop returning a position property on Photo objects or will only return 0. This method will be removed in Spring Social Facebook 1.1.0.

The position of the photo in a list of photos.


getCreatedTime

public Date getCreatedTime()

getUpdatedTime

public Date getUpdatedTime()

getImages

public List<Photo.Image> getImages()
Returns:
A list of all Image objects for this photo, ordered largest to smallest.

getOversizedImage

@Deprecated
public Photo.Image getOversizedImage()
Deprecated. With July 2013 breaking changes, Facebook will no longer return images larger than the original image. Therefore, there's no way of knowing what sized images will or won't be in the image list.

The Image object for the oversized image.

Note that as of the July 2013 breaking changes in Facebook's API, Facebook will no longer return images larger than the originally uploaded image. Therefore, there is no way of knowing which index the oversized image is at, if it exists at all. Consequently, this method has been deprecated and will be removed in Spring Social Facebook 1.1.0. Until then, it will return the image at index 0 in the images list, which may or may not be the source image.

Returns:
the 0th image in the images list, previously assumed to be the tiny image. null if there is no 0th image.

getSourceImage

@Deprecated
public Photo.Image getSourceImage()
Deprecated. With July 2013 breaking changes, Facebook will no longer return images larger than the original image. Therefore, there's no way of knowing what sized images will or won't be in the image list.

The Image object for the source image.

Note that as of the July 2013 breaking changes in Facebook's API, Facebook will no longer return images larger than the originally uploaded image. Therefore, there is no way of knowing which index the source image is at, if it exists at all. Consequently, this method has been deprecated and will be removed in Spring Social Facebook 1.1.0. Until then, it will return the image at index 1 in the images list, which may or may not be the source image.

Returns:
the 1th image in the images list, previously assumed to be the tiny image. null if there is no 1th image.

getSmallImage

@Deprecated
public Photo.Image getSmallImage()
Deprecated. With July 2013 breaking changes, Facebook will no longer return images larger than the original image. Therefore, there's no way of knowing what sized images will or won't be in the image list.

The Image object for the small image.

Note that as of the July 2013 breaking changes in Facebook's API, Facebook will no longer return images larger than the originally uploaded image. Therefore, there is no way of knowing which index the small image is at, if it exists at all. Consequently, this method has been deprecated and will be removed in Spring Social Facebook 1.1.0. Until then, it will return the image at index 6 in the images list, which may or may not be the small image.

Returns:
the 6th image in the images list, previously assumed to be the tiny image. null if there is no 6th image.

getAlbumImage

@Deprecated
public Photo.Image getAlbumImage()
Deprecated. With July 2013 breaking changes, Facebook will no longer return images larger than the original image. Therefore, there's no way of knowing what sized images will or won't be in the image list.

The Image object for the album image.

Note that as of the July 2013 breaking changes in Facebook's API, Facebook will no longer return images larger than the originally uploaded image. Therefore, there is no way of knowing which index the album image is at, if it exists at all. Consequently, this method has been deprecated and will be removed in Spring Social Facebook 1.1.0. Until then, it will return the image at index 5 in the images list, which may or may not be the album image.

Returns:
the 5th image in the images list, previously assumed to be the tiny image. null if there is no 5th image.

getTinyImage

@Deprecated
public Photo.Image getTinyImage()
Deprecated. With July 2013 breaking changes, Facebook will no longer return images larger than the original image. Therefore, there's no way of knowing what sized images will or won't be in the image list.

The Image object for the tiny image.

Note that as of the July 2013 breaking changes in Facebook's API, Facebook will no longer return images larger than the originally uploaded image. Therefore, there is no way of knowing which index the tiny image is at, if it exists at all. Consequently, this method has been deprecated and will be removed in Spring Social Facebook 1.1.0. Until then, it will return the image at index 7 in the images list, which may or may not be the tiny image.

Returns:
the 7th image in the images list, previously assumed to be the tiny image. null if there is no 7th image.

getTags

public List<Tag> getTags()