com.google.code.facebookapi
Class FeedFacebookPhoto
java.lang.Object
com.google.code.facebookapi.Pair<java.lang.Object,java.net.URL>
com.google.code.facebookapi.FeedFacebookPhoto
- All Implemented Interfaces:
- IFeedImage, IPair<java.lang.Object,java.net.URL>, java.io.Serializable
public class FeedFacebookPhoto
- extends Pair<java.lang.Object,java.net.URL>
- 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 Also:
IFacebookRestClient,
IFacebookRestClient.photos_get(java.lang.Long, java.lang.String, java.util.Collection),
FacebookRestClient#handleFeedImages,
Serialized Form
|
Constructor Summary |
FeedFacebookPhoto(java.lang.Long photoId,
java.net.URL link)
Creates a linked Facebook Photos photo to appear in a user's newsfeed/minifeed. |
|
Method Summary |
java.lang.String |
getImageUrlString()
The image "url" can be either:
a URL linking to an image: this image will be be shrunk to fit within 75x75, cached, and formatted by Facebook. |
java.net.URL |
getLinkUrl()
|
java.lang.Object |
getPhotoId()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeedFacebookPhoto
public FeedFacebookPhoto(java.lang.Long photoId,
java.net.URL link)
- Creates a linked Facebook Photos photo to appear in a user's newsfeed/minifeed.
- Parameters:
photoId - the photo ID of a Facebook photo to appear in a user's newsfeed/minifeedlink - the URL to which the image should link- See Also:
IFacebookRestClient.photos_get(java.lang.Long, java.lang.String, java.util.Collection),
FacebookRestClient#handleFeedImages
getPhotoId
public java.lang.Object getPhotoId()
- Returns:
- the Facebook Photos photo ID of the feed image
getImageUrlString
public java.lang.String getImageUrlString()
- Description copied from interface:
IFeedImage
- The image "url" can be either:
- a URL linking to an image: this image will be be shrunk to fit within 75x75, cached, and formatted by Facebook.
- a Facebook photo ID
- Specified by:
getImageUrlString in interface IFeedImage
- Returns:
- the String representation of the feed image "URL"
getLinkUrl
public java.net.URL getLinkUrl()
- Specified by:
getLinkUrl in interface IFeedImage
- Returns:
- the link URL to which the feed image should link
Copyright © 2010. All Rights Reserved.