Spring Social Facebook

org.springframework.social.facebook.api
Class Photo

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

public class Photo
extends java.lang.Object

Model class representing a photo.

Author:
Craig Walls

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.
 java.util.Date getCreatedTime()
           
 Reference getFrom()
           
 java.lang.String getIcon()
           
 java.lang.String getId()
           
 java.util.List<Photo.Image> getImages()
           
 java.lang.String getLink()
           
 java.lang.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.
 java.lang.String getPicture()
           
 java.lang.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.
 java.lang.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.
 java.util.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.
 java.util.Date getUpdatedTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public java.lang.String getId()

getName

public java.lang.String getName()

getFrom

public Reference getFrom()

getPicture

public java.lang.String getPicture()

getSource

public java.lang.String getSource()

getLink

public java.lang.String getLink()

getIcon

public java.lang.String getIcon()

getPosition

@Deprecated
public java.lang.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 java.util.Date getCreatedTime()

getUpdatedTime

public java.util.Date getUpdatedTime()

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.

getImages

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

getTags

public java.util.List<Tag> getTags()

Spring Social Facebook