FileDocCategorySizeDatePackage
FeedFacebookPhoto.javaAPI DocGoogle Facebook API v1.51574Sun Nov 11 16:51:58 GMT 2007com.facebook.api

FeedFacebookPhoto

public class FeedFacebookPhoto extends Pair implements IFeedImage
A simple Pair consisting of a Facebook Photos photo ID for an image appearing in a newsfeed/minifeed story and the destination URL for a click on that image.
see
IFacebookRestClient
see
IFacebookRestClient#photos_get
see
FacebookRestClient#handleFeedImages

Fields Summary
Constructors Summary
public FeedFacebookPhoto(Long photoId, URL link)
Creates a linked Facebook Photos photo to appear in a user's newsfeed/minifeed.

param
photoId the photo ID of a Facebook photo to appear in a user's newsfeed/minifeed
param
link the URL to which the image should link
see
IFacebookRestClient#photos_get
see
FacebookRestClient#handleFeedImages

    super(photoId, link);
    if (null == photoId || null == link) {
      throw new IllegalArgumentException("Both photoId and linkUrl should be provided");
    }
    if (0L >= photoId) {
      throw new IllegalArgumentException("photoId should be a Facebook Photos ID > 0");
    }
  
Methods Summary
public java.lang.StringgetImageUrlString()

return
the String representation of the feed image "URL"

    return getFirst().toString();
  
public java.net.URLgetLinkUrl()

return
the link URL to which the feed image should link

    return getSecond();
  
public java.lang.ObjectgetPhotoId()

return
the Facebook Photos photo ID of the feed image

    return getFirst();