public interface PhotoMethods
| Modifier and Type | Method and Description |
|---|---|
boolean |
addTagToPhoto(java.lang.String photoId,
java.util.List<java.lang.String> toUserIds)
Adds the tag to a photo.
|
boolean |
addTagToPhoto(java.lang.String photoId,
java.lang.String toUserId)
Adds the tag to a photo.
|
boolean |
addTagToPhoto(java.lang.String photoId,
TagUpdate tagUpdate)
Adds the tag to a photo.
|
java.lang.String |
commentPhoto(java.lang.String photoId,
CommentUpdate commentUpdate)
Comments on the photo.
|
java.lang.String |
commentPhoto(java.lang.String photoId,
java.lang.String message)
Comments on the photo.
|
boolean |
deletePhoto(java.lang.String photoId)
Deletes the photo.
|
boolean |
deleteTagOnPhoto(java.lang.String photoId,
java.lang.String toUserId)
Deletes a tag for a particular user in the photo.
|
Photo |
getPhoto(java.lang.String photoId)
Returns a single photo.
|
Photo |
getPhoto(java.lang.String photoId,
Reading reading)
Returns a single photo.
|
ResponseList<Comment> |
getPhotoComments(java.lang.String photoId)
Returns the comments made on a photo.
|
ResponseList<Comment> |
getPhotoComments(java.lang.String photoId,
Reading reading)
Returns the comments made on a photo.
|
ResponseList<Like> |
getPhotoLikes(java.lang.String photoId)
Returns the likes made on a photo.
|
ResponseList<Like> |
getPhotoLikes(java.lang.String photoId,
Reading reading)
Returns the likes made on a photo.
|
ResponseList<Photo> |
getPhotos()
Returns the photos the current user/page is tagged in.
|
ResponseList<Photo> |
getPhotos(Reading reading)
Returns the photos the current user/page is tagged in.
|
ResponseList<Photo> |
getPhotos(java.lang.String id)
Returns the photos a user is tagged in / uploaded to a page / published to an event.
|
ResponseList<Photo> |
getPhotos(java.lang.String id,
Reading reading)
Returns the photos a user is tagged in / uploaded to a page / published to an event.
|
java.net.URL |
getPhotoURL(java.lang.String photoId)
Returns url of a photo.
|
ResponseList<Tag> |
getTagsOnPhoto(java.lang.String photoId)
Returns the Users tagged in a photo.
|
ResponseList<Tag> |
getTagsOnPhoto(java.lang.String photoId,
Reading reading)
Returns the Users tagged in a photo.
|
ResponseList<Photo> |
getUploadedPhotos()
Returns All of the updates photos of the current user/page.
|
ResponseList<Photo> |
getUploadedPhotos(Reading reading)
Returns All of the updates photos of the current user/page.
|
ResponseList<Photo> |
getUploadedPhotos(java.lang.String id)
Returns All of the updates photos of the current user/page.
|
ResponseList<Photo> |
getUploadedPhotos(java.lang.String id,
Reading reading)
Returns All of the updates photos of the current user/page.
|
boolean |
likePhoto(java.lang.String photoId)
Likes the photo.
|
java.lang.String |
postPhoto(Media source)
Posts a photo to the current user's wall.
|
java.lang.String |
postPhoto(PhotoUpdate photoUpdate)
Posts a photo to the current user's wall.
|
java.lang.String |
postPhoto(java.lang.String userId,
Media source)
Posts the photo to a user's wall.
|
java.lang.String |
postPhoto(java.lang.String userId,
PhotoUpdate photoUpdate)
Posts the photo to a user's wall.
|
boolean |
unlikePhoto(java.lang.String photoId)
Unlikes the photo.
|
boolean |
updateTagOnPhoto(java.lang.String photoId,
TagUpdate tagUpdate)
Updates the position of the tag on a photo.
|
ResponseList<Photo> getUploadedPhotos() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Photo> getUploadedPhotos(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Photo> getUploadedPhotos(java.lang.String id) throws FacebookException
id - the ID of a user/pageFacebookException - when Facebook service or network is unavailableResponseList<Photo> getUploadedPhotos(java.lang.String id, Reading reading) throws FacebookException
id - the ID of a user/pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Photo> getPhotos() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Photo> getPhotos(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Photo> getPhotos(java.lang.String id) throws FacebookException
id - the ID of a user/page/eventFacebookException - when Facebook service or network is unavailableResponseList<Photo> getPhotos(java.lang.String id, Reading reading) throws FacebookException
id - the ID of a user/page/eventreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String postPhoto(Media source) throws FacebookException
source - photo contentFacebookException - when Facebook service or network is unavailablejava.lang.String postPhoto(PhotoUpdate photoUpdate) throws FacebookException
photoUpdate - the photo to be createdFacebookException - when Facebook service or network is unavailablejava.lang.String postPhoto(java.lang.String userId,
Media source)
throws FacebookException
userId - the ID of a usersource - photo contentFacebookException - when Facebook service or network is unavailablejava.lang.String postPhoto(java.lang.String userId,
PhotoUpdate photoUpdate)
throws FacebookException
userId - the ID of a userphotoUpdate - the photo to be createdFacebookException - when Facebook service or network is unavailableboolean deletePhoto(java.lang.String photoId)
throws FacebookException
photoId - the ID of the photoFacebookException - when Facebook service or network is unavailablePhoto getPhoto(java.lang.String photoId) throws FacebookException
photoId - the ID of the photoFacebookException - when Facebook service or network is unavailablePhoto getPhoto(java.lang.String photoId, Reading reading) throws FacebookException
photoId - the ID of the photoreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Comment> getPhotoComments(java.lang.String photoId) throws FacebookException
photoId - the ID of a photoFacebookException - when Facebook service or network is unavailableResponseList<Comment> getPhotoComments(java.lang.String photoId, Reading reading) throws FacebookException
photoId - the ID of a photoreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String commentPhoto(java.lang.String photoId,
java.lang.String message)
throws FacebookException
photoId - the ID of the photomessage - comment textFacebookException - when Facebook service or network is unavailablejava.lang.String commentPhoto(java.lang.String photoId,
CommentUpdate commentUpdate)
throws FacebookException
photoId - the ID of the photocommentUpdate - comment contentFacebookException - when Facebook service or network is unavailableResponseList<Like> getPhotoLikes(java.lang.String photoId) throws FacebookException
photoId - the ID of a photoFacebookException - when Facebook service or network is unavailableResponseList<Like> getPhotoLikes(java.lang.String photoId, Reading reading) throws FacebookException
photoId - the ID of a photoreading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableboolean likePhoto(java.lang.String photoId)
throws FacebookException
photoId - the ID of the photoFacebookException - when Facebook service or network is unavailableboolean unlikePhoto(java.lang.String photoId)
throws FacebookException
photoId - the ID of the photoFacebookException - when Facebook service or network is unavailablejava.net.URL getPhotoURL(java.lang.String photoId)
throws FacebookException
photoId - the ID of a photoFacebookException - when Facebook service or network is unavailableResponseList<Tag> getTagsOnPhoto(java.lang.String photoId) throws FacebookException
photoId - the ID of a photoFacebookException - when Facebook service or network is unavailableResponseList<Tag> getTagsOnPhoto(java.lang.String photoId, Reading reading) throws FacebookException
photoId - the ID of a photoreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableboolean addTagToPhoto(java.lang.String photoId,
java.lang.String toUserId)
throws FacebookException
photoId - the ID of a phototoUserId - the ID of the user to tagFacebookException - when Facebook service or network is unavailableboolean addTagToPhoto(java.lang.String photoId,
java.util.List<java.lang.String> toUserIds)
throws FacebookException
photoId - the ID of a phototoUserIds - the IDs of the users to tagFacebookException - when Facebook service or network is unavailableboolean addTagToPhoto(java.lang.String photoId,
TagUpdate tagUpdate)
throws FacebookException
photoId - the ID of a phototagUpdate - tag informationFacebookException - when Facebook service or network is unavailableboolean updateTagOnPhoto(java.lang.String photoId,
TagUpdate tagUpdate)
throws FacebookException
photoId - the ID of a phototagUpdate - tag information, supports 'to', 'x', 'y'FacebookException - when Facebook service or network is unavailableboolean deleteTagOnPhoto(java.lang.String photoId,
java.lang.String toUserId)
throws FacebookException
photoId - the ID of a phototoUserId - the ID of the user to tagFacebookException - when Facebook service or network is unavailable