facebook4j
Class FacebookImpl

java.lang.Object
  extended by facebook4j.FacebookBaseImpl
      extended by facebook4j.FacebookImpl
All Implemented Interfaces:
AccountMethods, ActivityMethods, AlbumMethods, CheckinMethods, CommentMethods, DomainMethods, EventMethods, FamilyMethods, FavoriteMethods, FQLMethods, FriendMethods, GameMethods, GroupMethods, InsightMethods, LikeMethods, LinkMethods, LocationMethods, MessageMethods, NoteMethods, NotificationMethods, PageMethods, PermissionMethods, PhotoMethods, PokeMethods, PostMethods, QuestionMethods, SearchMethods, SubscribeMethods, TestUserMethods, UserMethods, VideoMethods, OAuthSupport, Facebook, FacebookBase, java.io.Serializable

 class FacebookImpl
extends FacebookBaseImpl
implements Facebook

A java representation of the Facebook Graph API
This class is thread safe and can be cached/re-used and used concurrently.
Currently this class is not carefully designed to be extended. It is suggested to extend this class only for mock testing purpose.

Author:
Ryuji Yamashita - roundrop at gmail.com

Field Summary
private static long serialVersionUID
           
 
Fields inherited from class facebook4j.FacebookBaseImpl
auth, conf, factory, http, id, name
 
Constructor Summary
FacebookImpl(Configuration conf, Authorization auth)
           
 
Method Summary
private  java.lang.String _comment(java.lang.String objectId, java.lang.String message)
           
private  ResponseList<Comment> _getComments(java.lang.String objectId, Reading reading)
           
private  ResponseList<Like> _getLikes(java.lang.String objectId, Reading reading)
           
private  java.net.URL _getPictureURL(java.lang.String objectId, PictureSize size)
           
private  java.net.URL _getSSLPictureURL(java.lang.String objectId, PictureSize size)
           
private  boolean _like(java.lang.String objectId)
           
private  java.lang.String _postLink(java.lang.String objectId, java.net.URL link, java.lang.String message)
           
private  java.lang.String _postStatusMessage(java.lang.String objectId, java.lang.String message)
           
private  boolean _unlike(java.lang.String objectId)
           
 java.lang.String addAlbumPhoto(java.lang.String albumId, Media source)
          Adds a photo to the album.
 java.lang.String addAlbumPhoto(java.lang.String albumId, Media source, java.lang.String message)
          Adds a photo to the album.
 boolean addFriendlistMember(java.lang.String friendlistId, java.lang.String userId)
          Adds a user to the friend list.
 java.lang.String addQuestionOption(java.lang.String questionId, java.lang.String optionDescription)
          Adds the option to a question.
 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.util.Map<java.lang.String,java.lang.Boolean> block(java.util.List<java.lang.String> userIds)
          Blocks users from posting content to the current page.
 java.util.Map<java.lang.String,java.lang.Boolean> block(java.lang.String pageId, java.util.List<java.lang.String> userIds)
          Blocks users from posting content to the current page.
private  java.lang.String buildEndpoint(java.lang.String id)
           
private  java.lang.String buildEndpoint(java.lang.String id, Reading reading)
           
private  java.lang.String buildEndpoint(java.lang.String id, java.lang.String connection)
           
private  java.lang.String buildEndpoint(java.lang.String id, java.lang.String connection, Reading reading)
           
private  java.lang.String buildSearchEndpoint(java.lang.String query, java.lang.String objectType, Reading reading)
           
private  java.lang.String buildVideoEndpoint(java.lang.String id, java.lang.String connection)
           
private  java.lang.String buildVideoEndpoint(java.lang.String id, java.lang.String connection, Reading reading)
           
 java.lang.String checkin(CheckinUpdate checkinUpdate)
          Checkins the place as the current user.
 java.lang.String checkin(java.lang.String userId, CheckinUpdate checkinUpdate)
          Checkins the place as a user.
 java.lang.String commentAlbum(java.lang.String albumId, java.lang.String message)
          Comments on the album.
 java.lang.String commentCheckin(java.lang.String checkinId, java.lang.String message)
          Comments on a checkin.
 java.lang.String commentLink(java.lang.String linkId, java.lang.String message)
          Comments on the link.
 java.lang.String commentNote(java.lang.String noteId, java.lang.String message)
          Comments on the note.
 java.lang.String commentPhoto(java.lang.String photoId, java.lang.String message)
          Comments on the photo.
 java.lang.String commentPost(java.lang.String postId, java.lang.String message)
          Comments on the post.
 java.lang.String commentVideo(java.lang.String videoId, java.lang.String message)
          Comments on the video.
private  boolean containsAccessToken(HttpParameter[] parameters)
           
private  java.lang.String convertQueriesToJson(java.util.Map<java.lang.String,java.lang.String> queries)
           
 java.lang.String createAlbum(AlbumUpdate albumUpdate)
          Creates the current user's photo album.
 java.lang.String createAlbum(java.lang.String userId, AlbumUpdate albumUpdate)
          Creates the user's photo album.
 java.lang.String createEvent(EventUpdate eventUpdate)
          Creates the event for the current user/page.
 java.lang.String createEvent(java.lang.String id, EventUpdate eventUpdate)
          Creates the event for a user/event/page.
 java.lang.String createFriendlist(java.lang.String friendlistName)
          Creates the friend list for the current user.
 java.lang.String createFriendlist(java.lang.String userId, java.lang.String friendlistName)
          Creates the friend list for a user.
 java.lang.String createMilestone(MilestoneUpdate milestoneUpdate)
          Creates the milestone for the current page.
 java.lang.String createMilestone(java.lang.String pageId, MilestoneUpdate milestoneUpdate)
          Creates the milestone for the page.
 java.lang.String createNote(java.lang.String subject, java.lang.String message)
          Creates the current user's/page's note.
 java.lang.String createNote(java.lang.String id, java.lang.String subject, java.lang.String message)
          Creates the note on behalf of a user/page.
 java.lang.String createOffer(OfferUpdate offerUpdate)
          Creates an offer for the current page.
 java.lang.String createOffer(java.lang.String pageId, OfferUpdate offerUpdate)
          Creates an offers for the page.
 java.lang.String createQuestion(QuestionUpdate questionUpdate)
          Creates a current page's question.
 java.lang.String createQuestion(java.lang.String id, QuestionUpdate questionUpdate)
          Creates the question.
 TestUser createTestUser(java.lang.String appId)
          Creates a test user associated with a particular app.
 TestUser createTestUser(java.lang.String appId, java.lang.String name, java.lang.String locale, java.lang.String permissions)
          Creates a test user associated with a particular app.
private  HttpResponse delete(java.lang.String url)
           
private  HttpResponse delete(java.lang.String url, HttpParameter[] parameters)
           
 boolean deleteAchievement(java.lang.String userId, java.net.URL achievementURL)
          Deletes the achievement for a user.
 boolean deleteAchievement(java.net.URL achievementURL)
          Deletes the achievement for the current user.
 boolean deleteComment(java.lang.String commentId)
          Deletes the comment.
 boolean deleteEvent(java.lang.String eventId)
          Deletes the event.
 boolean deleteEventPicture(java.lang.String eventId)
          Deletes the event's profile picture.
 boolean deleteFriendlist(java.lang.String friendlistId)
          Deletes the friend list.
 boolean deleteMilestone(java.lang.String milestoneId)
          Deletes the milestone.
 boolean deleteOffer(java.lang.String offerId)
          Deletes the createOffer.
 boolean deletePhoto(java.lang.String photoId)
          Deletes the photo.
 boolean deletePost(java.lang.String postId)
          Deletes the post.
 boolean deleteQuestion(java.lang.String questionId)
          Deletes the question.
 boolean deleteScore()
          Deletes the current score for the current user.
 boolean deleteScore(java.lang.String userId)
          Deletes the current score for a user.
 boolean deleteTab(java.lang.String tabId)
          Deletes an installed profile_tab where is_permanent is not true for the current page.
 boolean deleteTab(java.lang.String pageId, java.lang.String tabId)
          Deletes an installed profile_tab where is_permanent is not true for the page.
 boolean deleteTagOnPhoto(java.lang.String photoId, java.lang.String toUserId)
          Deletes a tag for a particular user in the photo.
 boolean deleteTestUser(java.lang.String testUserId)
          Deletes the test user.
 boolean displayPagePost(java.lang.String postId, boolean isHidden)
          Hides/Shows the page's post that is published by a non-admin user.
 boolean editEvent(java.lang.String eventId, EventUpdate eventUpdate)
          Updates the event.
 JSONArray executeFQL(java.lang.String query)
          Executes a single FQL query.
 JSONArray executeFQL(java.lang.String query, java.util.Locale locale)
          Executes a single FQL query.
 java.util.Map<java.lang.String,JSONArray> executeMultiFQL(java.util.Map<java.lang.String,java.lang.String> queries)
          Executes multiple FQL queries.
 java.util.Map<java.lang.String,JSONArray> executeMultiFQL(java.util.Map<java.lang.String,java.lang.String> queries, java.util.Locale locale)
          Executes multiple FQL queries.
<T> ResponseList<T>
fetchNext(Paging<T> paging)
          Fetches the data of the next page.
private
<T> ResponseList<T>
fetchPaging(java.net.URL url, java.lang.Class<T> jsonObjectType)
           
<T> ResponseList<T>
fetchPrevious(Paging<T> paging)
          Fetches the data of the previous page.
private  HttpResponse get(java.lang.String url)
           
private  HttpResponse get(java.lang.String url, HttpParameter[] parameters)
           
 ResponseList<Account> getAccounts()
          Returns the current user's accounts of Facebook apps and pages.
 ResponseList<Account> getAccounts(Reading reading)
          Returns the current user's accounts of Facebook apps and pages.
 ResponseList<Account> getAccounts(java.lang.String userId)
          Returns a user's accounts of Facebook apps and pages.
 ResponseList<Account> getAccounts(java.lang.String userId, Reading reading)
          Returns a user's accounts of Facebook apps and pages.
 ResponseList<Achievement> getAchievements()
          Returns the achievements for the current user.
 ResponseList<Achievement> getAchievements(Reading reading)
          Returns the achievements for the current user.
 ResponseList<Achievement> getAchievements(java.lang.String userId)
          Returns the achievements for a user.
 ResponseList<Achievement> getAchievements(java.lang.String userId, Reading reading)
          Returns the achievements for a user.
 ResponseList<Activity> getActivities()
          Returns the activities listed on the current user's profile.
 ResponseList<Activity> getActivities(Reading reading)
          Returns the activities listed on the current user's profile.
 ResponseList<Activity> getActivities(java.lang.String userId)
          Returns the activities listed on a user's profile.
 ResponseList<Activity> getActivities(java.lang.String userId, Reading reading)
          Returns the activities listed on a user's profile.
 Album getAlbum(java.lang.String albumId)
          Returns a single photo album.
 Album getAlbum(java.lang.String albumId, Reading reading)
          Returns a single photo album.
 ResponseList<Comment> getAlbumComments(java.lang.String albumId)
          Returns the comments made on the album.
 ResponseList<Comment> getAlbumComments(java.lang.String albumId, Reading reading)
          Returns the comments made on the album.
 java.net.URL getAlbumCoverPhoto(java.lang.String albumId)
          Returns url of the album's cover photo.
 ResponseList<Like> getAlbumLikes(java.lang.String albumId)
          Returns likes made on the album.
 ResponseList<Like> getAlbumLikes(java.lang.String albumId, Reading reading)
          Returns likes made on the album.
 ResponseList<Photo> getAlbumPhotos(java.lang.String albumId)
          Returns the photos contained in the album.
 ResponseList<Photo> getAlbumPhotos(java.lang.String albumId, Reading reading)
          Returns the photos contained in the album.
 ResponseList<Album> getAlbums()
          Returns the photo albums the current user/page has created.
 ResponseList<Album> getAlbums(Reading reading)
          Returns the photo albums the current user/page has created.
 ResponseList<Album> getAlbums(java.lang.String id)
          Returns the photo albums a user/page has created.
 ResponseList<Album> getAlbums(java.lang.String id, Reading reading)
          Returns the photo albums a user/page has created.
 ResponseList<Friend> getBelongsFriend(java.lang.String friendId)
          Returns the friend if the current user friends with.
 ResponseList<Friend> getBelongsFriend(java.lang.String friendId, Reading reading)
          Returns the friend if the current user friends with.
 ResponseList<Friend> getBelongsFriend(java.lang.String userId, java.lang.String friendId)
          Returns the friend if a user friends with.
 ResponseList<Friend> getBelongsFriend(java.lang.String userId, java.lang.String friendId, Reading reading)
          Returns the friend if a user friends with.
 ResponseList<User> getBlocked()
          Returns a list of users blocked from the current Page.
 ResponseList<User> getBlocked(Reading reading)
          Returns a list of users blocked from the current Page.
 ResponseList<User> getBlocked(java.lang.String pageId)
          Returns a list of users blocked from the Page.
 ResponseList<User> getBlocked(java.lang.String pageId, Reading reading)
          Returns a list of users blocked from the Page.
 ResponseList<Book> getBooks()
          Returns the books listed on the current user's profile.
 ResponseList<Book> getBooks(Reading reading)
          Returns the books listed on the current user's profile.
 ResponseList<Book> getBooks(java.lang.String userId)
          Returns the books listed on a user's profile.
 ResponseList<Book> getBooks(java.lang.String userId, Reading reading)
          Returns the books listed on a user's profile.
 Checkin getCheckin(java.lang.String checkinId)
          Returns a single checkin information.
 Checkin getCheckin(java.lang.String checkinId, Reading reading)
          Returns a single checkin information.
 ResponseList<Comment> getCheckinComments(java.lang.String checkinId)
          Returns the comments on a checkin.
 ResponseList<Comment> getCheckinComments(java.lang.String checkinId, Reading reading)
          Returns the comments on a checkin.
 ResponseList<Like> getCheckinLikes(java.lang.String checkinId)
          Returns the users who like a checkin.
 ResponseList<Like> getCheckinLikes(java.lang.String checkinId, Reading reading)
          Returns the users who like a checkin.
 ResponseList<Checkin> getCheckins()
          Returns the places that the current user has checked-into or made to the Place Page by the current user or friends of the current user.
 ResponseList<Checkin> getCheckins(Reading reading)
          Returns the places that the current user has checked-into or made to the Place Page by the current user or friends of the current user.
 ResponseList<Checkin> getCheckins(java.lang.String id)
          Returns the places that a user has checked-into or made to the Place Page by the user or friends of the user.
 ResponseList<Checkin> getCheckins(java.lang.String id, Reading reading)
          Returns the places that a user has checked-into or made to the Place Page by the user or friends of the user.
 Comment getComment(java.lang.String commentId)
          Returns a single comment.
 ResponseList<Like> getCommentLikes(java.lang.String commentId)
          Returns the likes on a comment.
 ResponseList<Like> getCommentLikes(java.lang.String commentId, Reading reading)
          Returns the likes on a comment.
 Domain getDomain(java.lang.String domainId)
          Returns the website domain information using Facebook.
 Domain getDomainByName(java.lang.String domainName)
          Returns the website domain information using Facebook.
 java.util.List<Domain> getDomainsByName(java.lang.String... domainName)
          Returns the website domains information using Facebook.
 Event getEvent(java.lang.String eventId)
          Returns a single event.
 Event getEvent(java.lang.String eventId, Reading reading)
          Returns a single event.
 ResponseList<Photo> getEventPhotos(java.lang.String eventId)
          Returns the event's photos.
 ResponseList<Photo> getEventPhotos(java.lang.String eventId, Reading reading)
          Returns the event's photos.
 java.net.URL getEventPictureURL(java.lang.String eventId)
          Returns url of the event's profile picture.
 java.net.URL getEventPictureURL(java.lang.String eventId, PictureSize size)
          Returns url of the event's profile picture.
 ResponseList<Event> getEvents()
          Returns the events the current user/page is attending.
 ResponseList<Event> getEvents(Reading reading)
          Returns the events the current user/page is attending.
 ResponseList<Event> getEvents(java.lang.String id)
          Returns the events a user/event/page is attending.
 ResponseList<Event> getEvents(java.lang.String id, Reading reading)
          Returns the events a user/event/page is attending.
 ResponseList<Video> getEventVideos(java.lang.String eventId)
          Returns the event's videos.
 ResponseList<Video> getEventVideos(java.lang.String eventId, Reading reading)
          Returns the event's videos.
 ResponseList<Family> getFamily()
          Returns the current user's family relationships.
 ResponseList<Family> getFamily(Reading reading)
          Returns the current user's family relationships.
 ResponseList<Family> getFamily(java.lang.String userId)
          Returns a user's family relationships.
 ResponseList<Family> getFamily(java.lang.String userId, Reading reading)
          Returns a user's family relationships.
 ResponseList<Post> getFeed()
          Returns the current user's/page's/event's wall.
 ResponseList<Post> getFeed(Reading reading)
          Returns the current user's/page's/event's wall.
 ResponseList<Post> getFeed(java.lang.String id)
          Returns a user's/page's/event's wall.
 ResponseList<Post> getFeed(java.lang.String id, Reading reading)
          Returns a user's/page's/event's wall.
 Friendlist getFriendlist(java.lang.String friendlistId)
          Returns a single friend list.
 Friendlist getFriendlist(java.lang.String friendlistId, Reading reading)
          Returns a single friend list.
 ResponseList<Friend> getFriendlistMembers(java.lang.String friendlistId)
          Returns all of the users who are members of this list.
 ResponseList<Friendlist> getFriendlists()
          Returns the current user's friend lists.
 ResponseList<Friendlist> getFriendlists(Reading reading)
          Returns the current user's friend lists.
 ResponseList<Friendlist> getFriendlists(java.lang.String userId)
          Returns the user's friend lists.
 ResponseList<Friendlist> getFriendlists(java.lang.String userId, Reading reading)
          Returns the user's friend lists.
 ResponseList<FriendRequest> getFriendRequests()
          Returns the current user's incoming friend requests.
 ResponseList<FriendRequest> getFriendRequests(Reading reading)
          Returns the current user's incoming friend requests.
 ResponseList<FriendRequest> getFriendRequests(java.lang.String userId)
          Returns the user's incoming friend requests.
 ResponseList<FriendRequest> getFriendRequests(java.lang.String userId, Reading reading)
          Returns the user's incoming friend requests.
 ResponseList<Friend> getFriends()
          Returns the current user's friends.
 ResponseList<Friend> getFriends(Reading reading)
          Returns the current user's friends.
 ResponseList<Friend> getFriends(java.lang.String userId)
          Returns a user's friends.
 ResponseList<Friend> getFriends(java.lang.String userId, Reading reading)
          Returns a user's friends.
 ResponseList<Game> getGames()
          Returns the games the current user has added to the Arts and Entertainment section of their profile.
 ResponseList<Game> getGames(Reading reading)
          Returns the games the current user has added to the Arts and Entertainment section of their profile.
 ResponseList<Game> getGames(java.lang.String userId)
          Returns the games a user has added to the Arts and Entertainment section of their profile.
 ResponseList<Game> getGames(java.lang.String userId, Reading reading)
          Returns the games a user has added to the Arts and Entertainment section of their profile.
 ResponseList<Page> getGlobalBrandChildren(java.lang.String pageId)
          Returns all children pages of a specific page.
 ResponseList<Page> getGlobalBrandChildren(java.lang.String pageId, Reading reading)
          Returns all children pages of a specific page.
 Group getGroup(java.lang.String groupId)
          Returns a single group.
 Group getGroup(java.lang.String groupId, Reading reading)
          Returns a single group.
 ResponseList<GroupDoc> getGroupDocs(java.lang.String groupId)
          Returns the docs in a group.
 ResponseList<GroupDoc> getGroupDocs(java.lang.String groupId, Reading reading)
          Returns the docs in a group.
 ResponseList<Post> getGroupFeed(java.lang.String groupId)
          Returns the group's wall.
 ResponseList<Post> getGroupFeed(java.lang.String groupId, Reading reading)
          Returns the group's wall.
 ResponseList<GroupMember> getGroupMembers(java.lang.String groupId)
          Returns all of the users who are members of a group.
 ResponseList<GroupMember> getGroupMembers(java.lang.String groupId, Reading reading)
          Returns all of the users who are members of a group.
 java.net.URL getGroupPictureURL(java.lang.String groupId)
          Returns url of a group's profile picture.
 ResponseList<Group> getGroups()
          Returns the Groups that the current user belongs to.
 ResponseList<Group> getGroups(Reading reading)
          Returns the Groups that the current user belongs to.
 ResponseList<Group> getGroups(java.lang.String userId)
          Returns the Groups that a user belongs to.
 ResponseList<Group> getGroups(java.lang.String userId, Reading reading)
          Returns the Groups that a user belongs to.
 ResponseList<Post> getHome()
          Returns the current user's news feed.
 ResponseList<Post> getHome(Reading reading)
          Returns the current user's news feed.
 InboxResponseList<Message> getInbox()
          Returns the messages in the current user's inbox.
 InboxResponseList<Message> getInbox(Reading reading)
          Returns the messages in the current user's inbox.
 InboxResponseList<Message> getInbox(java.lang.String userId)
          Returns the messages in a user's inbox.
 InboxResponseList<Message> getInbox(java.lang.String userId, Reading reading)
          Returns the messages in a user's inbox.
 ResponseList<Insight> getInsights(java.lang.String objectId, java.lang.String metric)
           
 ResponseList<Insight> getInsights(java.lang.String objectId, java.lang.String metric, Reading reading)
           
 ResponseList<Tab> getInstalledTabs(java.util.List<java.lang.String> appIds)
          Returns the current Page's profile tabs if a specific app is installed.
 ResponseList<Tab> getInstalledTabs(java.util.List<java.lang.String> appIds, Reading reading)
          Returns the current Page's profile tabs if a specific app is installed.
 ResponseList<Tab> getInstalledTabs(java.lang.String pageId, java.util.List<java.lang.String> appIds)
          Returns the Page's profile tabs if a specific app is installed.
 ResponseList<Tab> getInstalledTabs(java.lang.String pageId, java.util.List<java.lang.String> appIds, Reading reading)
          Returns the Page's profile tabs if a specific app is installed.
 ResponseList<Interest> getInterests()
          Returns the interests listed on the current user's profile.
 ResponseList<Interest> getInterests(Reading reading)
          Returns the interests listed on the current user's profile.
 ResponseList<Interest> getInterests(java.lang.String userId)
          Returns the interests listed on a user's profile.
 ResponseList<Interest> getInterests(java.lang.String userId, Reading reading)
          Returns the interests listed on a user's profile.
 Page getLikedPage(java.lang.String pageId)
          Returns a specific page that the current user has liked.
 Page getLikedPage(java.lang.String pageId, Reading reading)
          Returns a specific page that the current user has liked.
 Page getLikedPage(java.lang.String userId, java.lang.String pageId)
          Returns a specific page that a user has liked.
 Page getLikedPage(java.lang.String userId, java.lang.String pageId, Reading reading)
          Returns a specific page that a user has liked.
 Link getLink(java.lang.String linkId)
          Returns the link shared on a user's wall.
 Link getLink(java.lang.String linkId, Reading reading)
          Returns the link shared on a user's wall.
 ResponseList<Comment> getLinkComments(java.lang.String linkId)
          Returns all of the comments on a link.
 ResponseList<Comment> getLinkComments(java.lang.String linkId, Reading reading)
          Returns all of the comments on a link.
 ResponseList<Like> getLinkLikes(java.lang.String linkId)
          Returns the likes on a link.
 ResponseList<Like> getLinkLikes(java.lang.String linkId, Reading reading)
          Returns the likes on a link.
 ResponseList<Link> getLinks()
          Returns the current user's/page's/event's posted links.
 ResponseList<Link> getLinks(Reading reading)
          Returns the current user's/page's/event's posted links.
 ResponseList<Link> getLinks(java.lang.String id)
          Returns a user's/page's/event's posted links.
 ResponseList<Link> getLinks(java.lang.String id, Reading reading)
          Returns a user's/page's/event's posted links.
 ResponseList<Location> getLocations()
          Returns the posts with location.
 ResponseList<Location> getLocations(Reading reading)
          Returns the posts with location.
 ResponseList<Location> getLocations(java.lang.String userId)
          Returns the posts with location.
 ResponseList<Location> getLocations(java.lang.String userId, Reading reading)
          Returns the posts with location.
 User getMe()
          Returns the current user.
 User getMe(Reading reading)
          Returns the current user.
 Message getMessage(java.lang.String messageId)
          Returns a single message.
 Message getMessage(java.lang.String messageId, Reading reading)
          Returns a single message.
 ResponseList<Milestone> getMilestones()
          Returns a list of the Page's milestones.
 ResponseList<Milestone> getMilestones(Reading reading)
          /** Returns a list of the Page's milestones.
 ResponseList<Milestone> getMilestones(java.lang.String pageId)
          Returns a list of the Page's milestones.
 ResponseList<Milestone> getMilestones(java.lang.String pageId, Reading reading)
          Returns a list of the Page's milestones.
 ResponseList<Movie> getMovies()
          Returns the movies listed on the current user's profile.
 ResponseList<Movie> getMovies(Reading reading)
          Returns the movies listed on the current user's profile.
 ResponseList<Movie> getMovies(java.lang.String userId)
          Returns the movies listed on a user's profile.
 ResponseList<Movie> getMovies(java.lang.String userId, Reading reading)
          Returns the movies listed on a user's profile.
 ResponseList<Music> getMusic()
          Returns the music listed on the current user's profile.
 ResponseList<Music> getMusic(Reading reading)
          Returns the music listed on the current user's profile.
 ResponseList<Music> getMusic(java.lang.String userId)
          Returns the music listed on a user's profile.
 ResponseList<Music> getMusic(java.lang.String userId, Reading reading)
          Returns the music listed on a user's profile.
 ResponseList<Friend> getMutualFriends(java.lang.String friendUserId)
          Returns the mutual friends between the current user and friend.
 ResponseList<Friend> getMutualFriends(java.lang.String friendUserId, Reading reading)
          Returns the mutual friends between the current user and friend.
 ResponseList<Friend> getMutualFriends(java.lang.String userId1, java.lang.String userId2)
          Returns the mutual friends between two users.
 ResponseList<Friend> getMutualFriends(java.lang.String userId1, java.lang.String userId2, Reading reading)
          Returns the mutual friends between two users.
 Note getNote(java.lang.String noteId)
          Returns a note.
 Note getNote(java.lang.String noteId, Reading reading)
          Returns a note.
 ResponseList<Comment> getNoteComments(java.lang.String noteId)
          Returns all of the comments on a note.
 ResponseList<Comment> getNoteComments(java.lang.String noteId, Reading reading)
          Returns all of the comments on a note.
 ResponseList<Like> getNoteLikes(java.lang.String noteId)
          Returns the likes made on a note.
 ResponseList<Like> getNoteLikes(java.lang.String noteId, Reading reading)
          Returns the likes made on a note.
 ResponseList<Note> getNotes()
          Returns the current user's/page's notes.
 ResponseList<Note> getNotes(Reading reading)
          Returns the current user's/page's notes.
 ResponseList<Note> getNotes(java.lang.String id)
          Returns a user's/page's notes.
 ResponseList<Note> getNotes(java.lang.String id, Reading reading)
          Returns a user's/page's notes.
 ResponseList<Notification> getNotifications()
          Returns the notifications for the current user.
 ResponseList<Notification> getNotifications(boolean includeRead)
          Returns the notifications for the current user.
 ResponseList<Notification> getNotifications(Reading reading)
          Returns the notifications for the current user.
 ResponseList<Notification> getNotifications(Reading reading, boolean includeRead)
          Returns the notifications for the current user.
 ResponseList<Notification> getNotifications(java.lang.String userId)
          Returns the notifications for a user.
 ResponseList<Notification> getNotifications(java.lang.String userId, boolean includeRead)
          Returns the notifications for a user.
 ResponseList<Notification> getNotifications(java.lang.String userId, Reading reading)
          Returns the notifications for a user.
 ResponseList<Notification> getNotifications(java.lang.String userId, Reading reading, boolean includeRead)
          Returns the notifications for a user.
 Offer getOffer(java.lang.String offerId)
          Returns the offer.
 ResponseList<Offer> getOffers()
          Returns a list of offers of the current page.
 ResponseList<Offer> getOffers(Reading reading)
          Returns a list of offers of the current page.
 ResponseList<Offer> getOffers(java.lang.String pageId)
          Returns a list of offers of the current page.
 ResponseList<Offer> getOffers(java.lang.String pageId, Reading reading)
          Returns a list of offers of the current page.
 ResponseList<Message> getOutbox()
          Returns the messages in the current user's outbox.
 ResponseList<Message> getOutbox(Reading reading)
          Returns the messages in the current user's outbox.
 ResponseList<Message> getOutbox(java.lang.String userId)
          Returns the messages in a user's outbox.
 ResponseList<Message> getOutbox(java.lang.String userId, Reading reading)
          Returns the messages in a user's outbox.
 Page getPage()
          Returns the current page.
 Page getPage(Reading reading)
          Returns the current page.
 Page getPage(java.lang.String pageId)
          Returns the page.
 Page getPage(java.lang.String pageId, Reading reading)
          Returns the page.
 ResponseList<Admin> getPageAdmins()
          Returns a list of the Page's Admins.
 ResponseList<Admin> getPageAdmins(Reading reading)
          Returns a list of the Page's Admins.
 ResponseList<Admin> getPageAdmins(java.lang.String pageId)
          Returns a list of the Page's Admins.
 ResponseList<Admin> getPageAdmins(java.lang.String pageId, Reading reading)
          Returns a list of the Page's Admins.
 ResponseList<Insight> getPageInsights(java.lang.String pageId)
          Returns the page's insights data.
 ResponseList<Insight> getPageInsights(java.lang.String pageId, Reading reading)
          Returns the page's insights data.
 java.net.URL getPagePictureURL()
          Returns the url of a page's profile picture.
 java.net.URL getPagePictureURL(PictureSize size)
          Returns the url of a page's profile picture.
 java.net.URL getPagePictureURL(java.lang.String pageId)
          Returns the url of a page's profile picture.
 java.net.URL getPagePictureURL(java.lang.String pageId, PictureSize size)
          Returns the url of a page's profile picture.
 ResponseList<PageSetting> getPageSettings()
          Returns the settings for the current page.
 ResponseList<PageSetting> getPageSettings(java.lang.String pageId)
          Returns the settings for the page.
 ResponseList<Tagged> getPageTagged(java.lang.String pageId)
          Returns the photos, videos, and posts in which the Page has been tagged.
 ResponseList<Tagged> getPageTagged(java.lang.String pageId, Reading reading)
          Returns the photos, videos, and posts in which the Page has been tagged.
 java.util.List<Permission> getPermissions()
          Returns the permissions granted the current user to the current application.
 java.util.List<Permission> getPermissions(java.lang.String userId)
          Returns the permissions granted a user to the current application.
 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.
 java.net.URL getPictureURL()
          Returns the url of the current user's profile picture.
 java.net.URL getPictureURL(PictureSize size)
          Returns the url of the current user's profile picture.
 java.net.URL getPictureURL(java.lang.String userId)
          Returns the url of a user's profile picture.
 java.net.URL getPictureURL(java.lang.String userId, PictureSize size)
          Returns the url of a user's profile picture.
 ResponseList<Poke> getPokes()
          Returns the current user's pokes.
 ResponseList<Poke> getPokes(Reading reading)
          Returns the current user's pokes.
 ResponseList<Poke> getPokes(java.lang.String userId)
          Returns a user's pokes.
 ResponseList<Poke> getPokes(java.lang.String userId, Reading reading)
          Returns a user's pokes.
 Post getPost(java.lang.String postId)
          Returns a single post.
 Post getPost(java.lang.String postId, Reading reading)
          Returns a single post.
 ResponseList<Comment> getPostComments(java.lang.String postId)
          Returns all of the comments on a post.
 ResponseList<Comment> getPostComments(java.lang.String postId, Reading reading)
          Returns all of the comments on a post.
 ResponseList<Insight> getPostInsights(java.lang.String postId)
           
 ResponseList<Like> getPostLikes(java.lang.String postId)
          Returns the likes on a post.
 ResponseList<Like> getPostLikes(java.lang.String postId, Reading reading)
          Returns the likes on a post.
 ResponseList<Post> getPosts()
          Returns the current user's/page's own posts.
 ResponseList<Post> getPosts(Reading reading)
          Returns the current user's/page's own posts.
 ResponseList<Post> getPosts(java.lang.String id)
          Returns the user's/page's own posts.
 ResponseList<Post> getPosts(java.lang.String id, Reading reading)
          Returns the user's/page's own posts.
 ResponseList<Post> getPromotablePosts()
          Returns the current Page's own posts, including unpublished and scheduled posts.
 ResponseList<Post> getPromotablePosts(Reading reading)
          Returns the current Page's own posts, including unpublished and scheduled posts.
 ResponseList<Post> getPromotablePosts(java.lang.String pageId)
          Returns the Page's own posts, including unpublished and scheduled posts.
 ResponseList<Post> getPromotablePosts(java.lang.String pageId, Reading reading)
          Returns the Page's own posts, including unpublished and scheduled posts.
 Question getQuestion(java.lang.String questionId)
          Returns a single question.
 Question getQuestion(java.lang.String questionId, Reading reading)
          Returns a single question.
 ResponseList<Question.Option> getQuestionOptions(java.lang.String questionId)
          Returns the options available as answers to the question.
 ResponseList<Question.Option> getQuestionOptions(java.lang.String questionId, Reading reading)
          Returns the options available as answers to the question.
 ResponseList<QuestionVotes> getQuestionOptionVotes(java.lang.String questionId)
          Returns the votes a particular option to a question has received.
 ResponseList<Question> getQuestions()
          Returns the current user's/page's questions.
 ResponseList<Question> getQuestions(Reading reading)
          Returns the current user's/page's questions.
 ResponseList<Question> getQuestions(java.lang.String id)
          Returns a user's/page's questions.
 ResponseList<Question> getQuestions(java.lang.String id, Reading reading)
          Returns a user's/page's questions.
private  HttpResponse getRaw(java.lang.String url)
           
 ResponseList<RSVPStatus> getRSVPStatusAsInvited(java.lang.String eventId)
          Returns a list of invitees for the event.
 ResponseList<RSVPStatus> getRSVPStatusAsInvited(java.lang.String eventId, java.lang.String userId)
          Checks a specific user has been invited to the event.
 ResponseList<RSVPStatus> getRSVPStatusAsNoreply(java.lang.String eventId)
          Returns a list of all users who have not replied to the event.
 ResponseList<RSVPStatus> getRSVPStatusAsNoreply(java.lang.String eventId, java.lang.String userId)
          Returns a single user who have not replied to the event.
 ResponseList<RSVPStatus> getRSVPStatusInAttending(java.lang.String eventId)
          Returns a list of all users who responded 'yes' to the event.
 ResponseList<RSVPStatus> getRSVPStatusInAttending(java.lang.String eventId, java.lang.String userId)
          Checks a specific user responded 'yes' to the event.
 ResponseList<RSVPStatus> getRSVPStatusInDeclined(java.lang.String eventId)
          Returns a list of all users who responded 'no' to the event.
 ResponseList<RSVPStatus> getRSVPStatusInDeclined(java.lang.String eventId, java.lang.String userId)
          Checks a specific user responded 'no' to the event.
 ResponseList<RSVPStatus> getRSVPStatusInMaybe(java.lang.String eventId)
          Returns a list of all users who responded 'maybe' to the event.
 ResponseList<RSVPStatus> getRSVPStatusInMaybe(java.lang.String eventId, java.lang.String userId)
          Checks a specific user responded 'maybe' to the event.
 ResponseList<Score> getScores()
          Returns the current scores for a user in games.
 ResponseList<Score> getScores(Reading reading)
          Returns the current scores for a user in games.
 ResponseList<Score> getScores(java.lang.String userId)
          Returns the current scores for the current user in games.
 ResponseList<Score> getScores(java.lang.String userId, Reading reading)
          Returns the current scores for the current user in games.
 java.net.URL getSSLPictureURL()
          Returns the url of the current user's profile picture over a secure connection.
 java.net.URL getSSLPictureURL(PictureSize size)
          Returns the url of the current user's profile picture over a secure connection.
 java.net.URL getSSLPictureURL(java.lang.String userId)
          Returns the url of a user's profile picture over a secure connection.
 java.net.URL getSSLPictureURL(java.lang.String userId, PictureSize size)
          Returns the url of a user's profile picture over a secure connection.
 ResponseList<Post> getStatuses()
          Returns the current user's status updates.
 ResponseList<Post> getStatuses(Reading reading)
          Returns the current user's status updates.
 ResponseList<Post> getStatuses(java.lang.String id)
          Returns the user's/page's status updates.
 ResponseList<Post> getStatuses(java.lang.String id, Reading reading)
          Returns the user's/page's status updates.
 ResponseList<Subscribedto> getSubscribedto()
          Returns people the current user is subscribed to.
 ResponseList<Subscribedto> getSubscribedto(Reading reading)
          Returns people the current user is subscribed to.
 ResponseList<Subscribedto> getSubscribedto(java.lang.String userId)
          Returns people a user is subscribed to.
 ResponseList<Subscribedto> getSubscribedto(java.lang.String userId, Reading reading)
          Returns people a user is subscribed to.
 ResponseList<Subscriber> getSubscribers()
          Returns the current user's subscribers.
 ResponseList<Subscriber> getSubscribers(Reading reading)
          Returns the current user's subscribers.
 ResponseList<Subscriber> getSubscribers(java.lang.String userId)
          Returns a user's subscribers.
 ResponseList<Subscriber> getSubscribers(java.lang.String userId, Reading reading)
          Returns a user's subscribers.
 ResponseList<Tab> getTabs()
          Returns the current Page's profile tabs.
 ResponseList<Tab> getTabs(Reading reading)
          Returns the current Page's profile tabs.
 ResponseList<Tab> getTabs(java.lang.String pageId)
          Returns the Page's profile tabs.
 ResponseList<Tab> getTabs(java.lang.String pageId, Reading reading)
          Returns the Page's profile tabs.
 ResponseList<Post> getTagged()
          Returns the posts the current user is tagged in.
 ResponseList<Post> getTagged(Reading reading)
          Returns the posts the current user is tagged in.
 ResponseList<Post> getTagged(java.lang.String userId)
          Returns the posts a user is tagged in.
 ResponseList<Post> getTagged(java.lang.String userId, Reading reading)
          Returns the posts the user is tagged in.
 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<Television> getTelevision()
          Returns the television listed on the current user's profile.
 ResponseList<Television> getTelevision(Reading reading)
          Returns the television listed on the current user's profile.
 ResponseList<Television> getTelevision(java.lang.String userId)
          Returns the television listed on a user's profile.
 ResponseList<Television> getTelevision(java.lang.String userId, Reading reading)
          Returns the television listed on a user's profile.
 java.util.List<TestUser> getTestUsers(java.lang.String appId)
          Returns test users associated with a particular app.
 ResponseList<Message> getUpdates()
          Returns the updates in the current user's inbox.
 ResponseList<Message> getUpdates(Reading reading)
          Returns the updates in the current user's inbox.
 ResponseList<Message> getUpdates(java.lang.String userId)
          Returns the updates in a user's inbox.
 ResponseList<Message> getUpdates(java.lang.String userId, Reading reading)
          Returns the updates in a user's inbox.
 User getUser(java.lang.String userId)
          Returns a given user, specified by ID.
 User getUser(java.lang.String userId, Reading reading)
          Returns a given user, specified by ID.
 ResponseList<Like> getUserLikes()
          Returns all the pages the current user has liked.
 ResponseList<Like> getUserLikes(Reading reading)
          Returns all the pages the current user has liked.
 ResponseList<Like> getUserLikes(java.lang.String userId)
          Returns all the pages a user has liked.
 ResponseList<Like> getUserLikes(java.lang.String userId, Reading reading)
          Returns all the pages a user has liked.
 java.util.List<User> getUsers(java.lang.String... ids)
          Returns the users specified by IDs.
 Video getVideo(java.lang.String videoId)
          Returns a single video.
 Video getVideo(java.lang.String videoId, Reading reading)
          Returns a single video.
 ResponseList<Comment> getVideoComments(java.lang.String videoId)
          Returns the comments on a video.
 ResponseList<Comment> getVideoComments(java.lang.String videoId, Reading reading)
          Returns the comments on a video.
 java.net.URL getVideoCover(java.lang.String videoId)
          Returns url of the image which represents the content of a video.
 ResponseList<Like> getVideoLikes(java.lang.String videoId)
          Returns all of the likes on a video.
 ResponseList<Like> getVideoLikes(java.lang.String videoId, Reading reading)
          Returns all of the likes on a video.
 ResponseList<Video> getVideos()
          Returns the videos the current user has been tagged in / the current page has uploaded.
 ResponseList<Video> getVideos(Reading reading)
          Returns the videos the current user has been tagged in / the current page has uploaded.
 ResponseList<Video> getVideos(java.lang.String id)
          Returns the videos a user has been tagged in / the current page has uploaded.
 ResponseList<Video> getVideos(java.lang.String id, Reading reading)
          Returns the videos a user has been tagged in / the current page has uploaded.
 boolean installTab(java.lang.String appId)
          Installs a profile_tab at the end of the current list of installed tabs for the current page.
 boolean installTab(java.lang.String pageId, java.lang.String appId)
          Installs a profile_tab at the end of the current list of installed tabs for the current page.
 boolean inviteToEvent(java.lang.String eventId, java.lang.String userId)
          Invites a user to the event.
 boolean inviteToEvent(java.lang.String eventId, java.lang.String[] userIds)
          Invites users to the event.
private  boolean isOk(HttpResponse response)
           
 boolean likeAlbum(java.lang.String albumId)
          Likes the album.
 boolean likeCheckin(java.lang.String checkinId)
          Likes the checkin.
 boolean likeComment(java.lang.String commentId)
          Likes the comment.
 boolean likeLink(java.lang.String linkId)
          Likes the link.
 boolean likeNote(java.lang.String noteId)
          Likes the note.
 boolean likePhoto(java.lang.String photoId)
          Likes the photo.
 boolean likePost(java.lang.String postId)
          Likes the post.
 boolean likeVideo(java.lang.String videoId)
          Likes the video.
 boolean makeFriendTestUser(TestUser testUser1, TestUser testUser2)
          Makes friends connections for a test user with other test users.
 boolean markNotificationAsRead(java.lang.String notificationId)
          Marks the notification as read.
private  HttpResponse post(java.lang.String url)
           
private  HttpResponse post(java.lang.String url, HttpParameter[] parameters)
           
 java.lang.String postAchievement(java.lang.String userId, java.net.URL achievementURL)
          Posts the achievement for a user.
 java.lang.String postAchievement(java.net.URL achievementURL)
          Posts the achievement for the current user.
 java.lang.String postBackdatingFeed(BackdatingPostUpdate backdatingPostUpdate)
          Creates the post that's back-dated to the current page's wall.
 java.lang.String postBackdatingFeed(java.lang.String pageId, BackdatingPostUpdate backdatingPostUpdate)
          Creates the post that's back-dated to a page's wall.
 java.lang.String postEventLink(java.lang.String eventId, java.net.URL link)
          Posts the link on a event's wall.
 java.lang.String postEventLink(java.lang.String eventId, java.net.URL link, java.lang.String message)
          Posts the link on a event's wall.
 java.lang.String postEventPhoto(java.lang.String eventId, Media source)
          Posts the photo on a event's wall.
 java.lang.String postEventPhoto(java.lang.String eventId, Media source, java.lang.String message)
          Posts the photo on a event's wall.
 java.lang.String postEventStatusMessage(java.lang.String eventId, java.lang.String message)
          Posts the status message on a event's wall.
 java.lang.String postEventVideo(java.lang.String eventId, Media source)
          Posts the video on a event's wall.
 java.lang.String postEventVideo(java.lang.String eventId, Media source, java.lang.String title, java.lang.String description)
          Posts the video on a event's wall.
 java.lang.String postFeed(PostUpdate postUpdate)
          Creates the post.
 java.lang.String postFeed(java.lang.String id, PostUpdate postUpdate)
          Creates the post.
 java.lang.String postGroupFeed(java.lang.String groupId, PostUpdate postUpdate)
          Creates the post on a group's wall.
 java.lang.String postGroupLink(java.lang.String groupId, java.net.URL linkURL)
          Posts the link on a group's wall.
 java.lang.String postGroupLink(java.lang.String groupId, java.net.URL linkURL, java.lang.String message)
          Posts the link on a group's wall.
 java.lang.String postGroupStatusMessage(java.lang.String groupId, java.lang.String message)
          Posts the status message on a group's wall.
 java.lang.String postLink(java.lang.String userId, java.net.URL link)
          Creates the link.
 java.lang.String postLink(java.lang.String userId, java.net.URL link, java.lang.String message)
          Creates the link.
 java.lang.String postLink(java.net.URL link)
          Creates the link.
 java.lang.String postLink(java.net.URL link, java.lang.String message)
          Creates the link.
 java.lang.String postPagePhoto(PagePhotoUpdate pagePhotoUpdate)
          Posts a photo to the current page's wall.
 java.lang.String postPagePhoto(java.lang.String pageId, PagePhotoUpdate pagePhotoUpdate)
          Posts a photo to a page's wall.
 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 postScore(int scoreValue)
          Posts the score for the current user.
 boolean postScore(java.lang.String userId, int scoreValue)
          Posts the score for a user.
 java.lang.String postStatusMessage(java.lang.String message)
          Creates the status message.
 java.lang.String postStatusMessage(java.lang.String id, java.lang.String message)
          Creates the status message.
 java.lang.String postVideo(java.lang.String id, VideoUpdate videoUpdate)
          Posts the video to a user's/page's wall.
 java.lang.String postVideo(VideoUpdate videoUpdate)
          Posts the video to the current user's/page's wall.
 boolean removeFriendlistMember(java.lang.String friendlistId, java.lang.String userId)
          Removes the user from a friend list.
 boolean revokePermission(java.lang.String permissionName)
          Revokes a specific permission from the current application.
 boolean revokePermission(java.lang.String userId, java.lang.String permissionName)
          Revokes a specific permission from the current application.
 boolean rsvpEventAsAttending(java.lang.String eventId)
          RSVPs the current user as 'attending' the event.
 boolean rsvpEventAsDeclined(java.lang.String eventId)
          RSVPs the current user as 'declined' the event.
 boolean rsvpEventAsMaybe(java.lang.String eventId)
          RSVPs the current user as 'maybe' the event.
 ResponseList<JSONObject> search(java.lang.String query)
          Searches every type all public objects.
 ResponseList<JSONObject> search(java.lang.String query, Reading reading)
          Searches every type all public objects.
 ResponseList<Checkin> searchCheckins()
          Returns latest checkins.
 ResponseList<Checkin> searchCheckins(Reading reading)
          Returns latest checkins.
 ResponseList<Event> searchEvents(java.lang.String query)
          Searches events.
 ResponseList<Event> searchEvents(java.lang.String query, Reading reading)
          Searches events.
 ResponseList<Group> searchGroups(java.lang.String query)
          Searches groups.
 ResponseList<Group> searchGroups(java.lang.String query, Reading reading)
          Searches groups.
 ResponseList<Location> searchLocations(GeoLocation center, int distance)
          Returns locations near a geographical location.
 ResponseList<Location> searchLocations(GeoLocation center, int distance, Reading reading)
          Returns locations near a geographical location.
 ResponseList<Location> searchLocations(java.lang.String placeId)
          Returns a particular place.
 ResponseList<Location> searchLocations(java.lang.String placeId, Reading reading)
          Returns a particular place.
 ResponseList<Page> searchPages(java.lang.String query)
          Searches pages.
 ResponseList<Page> searchPages(java.lang.String query, Reading reading)
          Searches pages.
 ResponseList<Place> searchPlaces(java.lang.String query)
          Searches places.
 ResponseList<Place> searchPlaces(java.lang.String query, GeoLocation center, int distance)
          Searches places.
 ResponseList<Place> searchPlaces(java.lang.String query, GeoLocation center, int distance, Reading reading)
          Searches places.
 ResponseList<Place> searchPlaces(java.lang.String query, Reading reading)
          Searches places.
 ResponseList<Post> searchPosts(java.lang.String query)
          Searches public posts.
 ResponseList<Post> searchPosts(java.lang.String query, Reading reading)
          Searches public posts.
 ResponseList<User> searchUsers(java.lang.String query)
          Searches users.
 ResponseList<User> searchUsers(java.lang.String query, Reading reading)
          Searches users.
 boolean unblock(java.lang.String userId)
          Unblocks the blocked user for the current page.
 boolean unblock(java.lang.String pageId, java.lang.String userId)
          Unblocks the blocked user for the page.
 boolean uninviteFromEvent(java.lang.String eventId, java.lang.String userId)
          Un-invites user from the event.
 boolean unlikeAlbum(java.lang.String albumId)
          Unlikes the album.
 boolean unlikeCheckin(java.lang.String checkinId)
          Unlikes the checkin.
 boolean unlikeComment(java.lang.String commentId)
          Unlikes the comment.
 boolean unlikeLink(java.lang.String linkId)
          Unlikes the link.
 boolean unlikeNote(java.lang.String noteId)
          Unlikes the note.
 boolean unlikePhoto(java.lang.String photoId)
          Unlikes the photo.
 boolean unlikePost(java.lang.String postId)
          Unlikes the post.
 boolean unlikeVideo(java.lang.String videoId)
          Unlikes the video.
 boolean updateEventPicture(java.lang.String eventId, Media source)
          Updates the event's profile picture.
 boolean updatePageBasicAttributes(PageUpdate pageUpdate)
          Updates a Page's basic attributes.
 boolean updatePageBasicAttributes(java.lang.String pageId, PageUpdate pageUpdate)
          Updates a Page's basic attributes.
 boolean updatePageCoverPhoto(PageCoverUpdate pageCoverUpdate)
          Updates the profile photo for the current page.
 boolean updatePageCoverPhoto(java.lang.String pageId, PageCoverUpdate pageCoverUpdate)
          Updates the profile photo for the current page.
 boolean updatePageProfilePhoto(Media source)
          Updates the profile photo for the current Page.
 boolean updatePageProfilePhoto(java.lang.String pageId, Media source)
          Updates the profile photo for a Page.
 boolean updatePageProfilePhoto(java.lang.String pageId, java.net.URL picture)
          Updates the profile photo for a Page.
 boolean updatePageProfilePhoto(java.net.URL picture)
          Updates the profile photo for the current Page.
 boolean updatePageSetting(PageSettingUpdate pageSettingUpdate)
          Updates the setting for the current page.
 boolean updatePageSetting(java.lang.String pageId, PageSettingUpdate pageSettingUpdate)
          Updates the setting for the page.
 boolean updateTab(java.lang.String pageId, java.lang.String tabId, TabUpdate tabUpdate)
          Updates an installed profile_tab for the page.
 boolean updateTab(java.lang.String tabId, TabUpdate tabUpdate)
          Updates an installed profile_tab for the current page.
 boolean updateTagOnPhoto(java.lang.String photoId, TagUpdate tagUpdate)
          Updates the position of the tag on a photo.
 
Methods inherited from class facebook4j.FacebookBaseImpl
ensureAuthorizationEnabled, equals, fillInIDAndName, getAuthorization, getConfiguration, getId, getName, getOAuthAccessToken, getOAuthAccessToken, getOAuthAppAccessToken, getOAuthAuthorizationURL, getOAuthAuthorizationURL, hashCode, setFactory, setHttp, setOAuthAccessToken, setOAuthAppId, setOAuthPermissions, shutdown, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface facebook4j.auth.OAuthSupport
getOAuthAccessToken, getOAuthAccessToken, getOAuthAppAccessToken, getOAuthAuthorizationURL, getOAuthAuthorizationURL, setOAuthAccessToken, setOAuthAppId, setOAuthPermissions
 
Methods inherited from interface facebook4j.FacebookBase
getAuthorization, getConfiguration, getId, getName, shutdown
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

FacebookImpl

FacebookImpl(Configuration conf,
             Authorization auth)
Method Detail

buildEndpoint

private java.lang.String buildEndpoint(java.lang.String id)

buildEndpoint

private java.lang.String buildEndpoint(java.lang.String id,
                                       Reading reading)

buildEndpoint

private java.lang.String buildEndpoint(java.lang.String id,
                                       java.lang.String connection)

buildEndpoint

private java.lang.String buildEndpoint(java.lang.String id,
                                       java.lang.String connection,
                                       Reading reading)

buildVideoEndpoint

private java.lang.String buildVideoEndpoint(java.lang.String id,
                                            java.lang.String connection)

buildVideoEndpoint

private java.lang.String buildVideoEndpoint(java.lang.String id,
                                            java.lang.String connection,
                                            Reading reading)

buildSearchEndpoint

private java.lang.String buildSearchEndpoint(java.lang.String query,
                                             java.lang.String objectType,
                                             Reading reading)

getMe

public User getMe()
           throws FacebookException
Description copied from interface: UserMethods
Returns the current user.

Specified by:
getMe in interface UserMethods
Returns:
user
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers

getMe

public User getMe(Reading reading)
           throws FacebookException
Description copied from interface: UserMethods
Returns the current user.

Specified by:
getMe in interface UserMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
user
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers

getUser

public User getUser(java.lang.String userId)
             throws FacebookException
Description copied from interface: UserMethods
Returns a given user, specified by ID.

Specified by:
getUser in interface UserMethods
Parameters:
userId - the ID of the user
Returns:
user
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers

getUser

public User getUser(java.lang.String userId,
                    Reading reading)
             throws FacebookException
Description copied from interface: UserMethods
Returns a given user, specified by ID.

Specified by:
getUser in interface UserMethods
Parameters:
userId - the ID of the user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
user
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers

getPictureURL

public java.net.URL getPictureURL()
                           throws FacebookException
Description copied from interface: UserMethods
Returns the url of the current user's profile picture.

Specified by:
getPictureURL in interface UserMethods
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getPictureURL

public java.net.URL getPictureURL(PictureSize size)
                           throws FacebookException
Description copied from interface: UserMethods
Returns the url of the current user's profile picture.

Specified by:
getPictureURL in interface UserMethods
Parameters:
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getPictureURL

public java.net.URL getPictureURL(java.lang.String userId)
                           throws FacebookException
Description copied from interface: UserMethods
Returns the url of a user's profile picture.

Specified by:
getPictureURL in interface UserMethods
Parameters:
userId - the ID of a user
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getPictureURL

public java.net.URL getPictureURL(java.lang.String userId,
                                  PictureSize size)
                           throws FacebookException
Description copied from interface: UserMethods
Returns the url of a user's profile picture.

Specified by:
getPictureURL in interface UserMethods
Parameters:
userId - the ID of a user
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getSSLPictureURL

public java.net.URL getSSLPictureURL()
                              throws FacebookException
Description copied from interface: UserMethods
Returns the url of the current user's profile picture over a secure connection.

Specified by:
getSSLPictureURL in interface UserMethods
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getSSLPictureURL

public java.net.URL getSSLPictureURL(PictureSize size)
                              throws FacebookException
Description copied from interface: UserMethods
Returns the url of the current user's profile picture over a secure connection.

Specified by:
getSSLPictureURL in interface UserMethods
Parameters:
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getSSLPictureURL

public java.net.URL getSSLPictureURL(java.lang.String userId)
                              throws FacebookException
Description copied from interface: UserMethods
Returns the url of a user's profile picture over a secure connection.

Specified by:
getSSLPictureURL in interface UserMethods
Parameters:
userId - the ID of a user
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getSSLPictureURL

public java.net.URL getSSLPictureURL(java.lang.String userId,
                                     PictureSize size)
                              throws FacebookException
Description copied from interface: UserMethods
Returns the url of a user's profile picture over a secure connection.

Specified by:
getSSLPictureURL in interface UserMethods
Parameters:
userId - the ID of a user
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - picture

getUsers

public java.util.List<User> getUsers(java.lang.String... ids)
                              throws FacebookException
Description copied from interface: UserMethods
Returns the users specified by IDs.

Specified by:
getUsers in interface UserMethods
Parameters:
ids - the IDs of users
Returns:
users
Throws:
FacebookException
See Also:
Graph API#reading - Facebook Developers

getAccounts

public ResponseList<Account> getAccounts()
                                  throws FacebookException
Description copied from interface: AccountMethods
Returns the current user's accounts of Facebook apps and pages.

Specified by:
getAccounts in interface AccountMethods
Returns:
accounts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - accounts

getAccounts

public ResponseList<Account> getAccounts(Reading reading)
                                  throws FacebookException
Description copied from interface: AccountMethods
Returns the current user's accounts of Facebook apps and pages.

Specified by:
getAccounts in interface AccountMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
accounts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - accounts

getAccounts

public ResponseList<Account> getAccounts(java.lang.String userId)
                                  throws FacebookException
Description copied from interface: AccountMethods
Returns a user's accounts of Facebook apps and pages.

Specified by:
getAccounts in interface AccountMethods
Parameters:
userId - the ID of a user
Returns:
accounts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - accounts

getAccounts

public ResponseList<Account> getAccounts(java.lang.String userId,
                                         Reading reading)
                                  throws FacebookException
Description copied from interface: AccountMethods
Returns a user's accounts of Facebook apps and pages.

Specified by:
getAccounts in interface AccountMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
accounts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - accounts

getAchievements

public ResponseList<Achievement> getAchievements()
                                          throws FacebookException
Description copied from interface: GameMethods
Returns the achievements for the current user.

Specified by:
getAchievements in interface GameMethods
Returns:
achievements
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#achievements - Facebook Developers

getAchievements

public ResponseList<Achievement> getAchievements(Reading reading)
                                          throws FacebookException
Description copied from interface: GameMethods
Returns the achievements for the current user.

Specified by:
getAchievements in interface GameMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
achievements
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#achievements - Facebook Developers

getAchievements

public ResponseList<Achievement> getAchievements(java.lang.String userId)
                                          throws FacebookException
Description copied from interface: GameMethods
Returns the achievements for a user.

Specified by:
getAchievements in interface GameMethods
Parameters:
userId - the ID of a user
Returns:
achievements
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#achievements - Facebook Developers

getAchievements

public ResponseList<Achievement> getAchievements(java.lang.String userId,
                                                 Reading reading)
                                          throws FacebookException
Description copied from interface: GameMethods
Returns the achievements for a user.

Specified by:
getAchievements in interface GameMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
achievements
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#achievements - Facebook Developers

postAchievement

public java.lang.String postAchievement(java.net.URL achievementURL)
                                 throws FacebookException
Description copied from interface: GameMethods
Posts the achievement for the current user.

Specified by:
postAchievement in interface GameMethods
Parameters:
achievementURL - the unique URL of the achievement which the current user achieved
Returns:
achievement (instance) ID for the current user
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#achievements - Facebook Developers

postAchievement

public java.lang.String postAchievement(java.lang.String userId,
                                        java.net.URL achievementURL)
                                 throws FacebookException
Description copied from interface: GameMethods
Posts the achievement for a user.

Specified by:
postAchievement in interface GameMethods
Parameters:
userId - the ID of a user
achievementURL - the unique URL of the achievement which the user achieved
Returns:
achievement (instance) ID for the user
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#achievements - Facebook Developers

deleteAchievement

public boolean deleteAchievement(java.net.URL achievementURL)
                          throws FacebookException
Description copied from interface: GameMethods
Deletes the achievement for the current user.

Specified by:
deleteAchievement in interface GameMethods
Parameters:
achievementURL - the unique URL of the achievement to delete
Returns:
true if delete is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#achievements - Facebook Developers

deleteAchievement

public boolean deleteAchievement(java.lang.String userId,
                                 java.net.URL achievementURL)
                          throws FacebookException
Description copied from interface: GameMethods
Deletes the achievement for a user.

Specified by:
deleteAchievement in interface GameMethods
Parameters:
userId - the ID of a user
achievementURL - the unique URL of the achievement to delete
Returns:
true if delete is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#achievements - Facebook Developers

getActivities

public ResponseList<Activity> getActivities()
                                     throws FacebookException
Description copied from interface: ActivityMethods
Returns the activities listed on the current user's profile.

Specified by:
getActivities in interface ActivityMethods
Returns:
activities
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - activities

getActivities

public ResponseList<Activity> getActivities(Reading reading)
                                     throws FacebookException
Description copied from interface: ActivityMethods
Returns the activities listed on the current user's profile.

Specified by:
getActivities in interface ActivityMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
activities
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - activities

getActivities

public ResponseList<Activity> getActivities(java.lang.String userId)
                                     throws FacebookException
Description copied from interface: ActivityMethods
Returns the activities listed on a user's profile.

Specified by:
getActivities in interface ActivityMethods
Parameters:
userId - the ID of a user
Returns:
activities
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - activities

getActivities

public ResponseList<Activity> getActivities(java.lang.String userId,
                                            Reading reading)
                                     throws FacebookException
Description copied from interface: ActivityMethods
Returns the activities listed on a user's profile.

Specified by:
getActivities in interface ActivityMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
activities
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - activities

getAlbums

public ResponseList<Album> getAlbums()
                              throws FacebookException
Description copied from interface: AlbumMethods
Returns the photo albums the current user/page has created.

Specified by:
getAlbums in interface AlbumMethods
Returns:
albums
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - albums

getAlbums

public ResponseList<Album> getAlbums(Reading reading)
                              throws FacebookException
Description copied from interface: AlbumMethods
Returns the photo albums the current user/page has created.

Specified by:
getAlbums in interface AlbumMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
albums
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#albums - Facebook Developers

getAlbums

public ResponseList<Album> getAlbums(java.lang.String id)
                              throws FacebookException
Description copied from interface: AlbumMethods
Returns the photo albums a user/page has created.

Specified by:
getAlbums in interface AlbumMethods
Parameters:
id - the ID of a user/page
Returns:
albums
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#albums - Facebook Developers

getAlbums

public ResponseList<Album> getAlbums(java.lang.String id,
                                     Reading reading)
                              throws FacebookException
Description copied from interface: AlbumMethods
Returns the photo albums a user/page has created.

Specified by:
getAlbums in interface AlbumMethods
Parameters:
id - the ID of a user/page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
albums
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#albums - Facebook Developers

getAlbum

public Album getAlbum(java.lang.String albumId)
               throws FacebookException
Description copied from interface: AlbumMethods
Returns a single photo album.

Specified by:
getAlbum in interface AlbumMethods
Parameters:
albumId - the ID of a album
Returns:
album
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album - Facebook Developers

getAlbum

public Album getAlbum(java.lang.String albumId,
                      Reading reading)
               throws FacebookException
Description copied from interface: AlbumMethods
Returns a single photo album.

Specified by:
getAlbum in interface AlbumMethods
Parameters:
albumId - the ID of a album
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
album
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album - Facebook Developers

createAlbum

public java.lang.String createAlbum(AlbumUpdate albumUpdate)
                             throws FacebookException
Description copied from interface: AlbumMethods
Creates the current user's photo album.

Specified by:
createAlbum in interface AlbumMethods
Parameters:
albumUpdate - the album to be created
Returns:
The new album ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#albums - Facebook Developers

createAlbum

public java.lang.String createAlbum(java.lang.String userId,
                                    AlbumUpdate albumUpdate)
                             throws FacebookException
Description copied from interface: AlbumMethods
Creates the user's photo album.

Specified by:
createAlbum in interface AlbumMethods
Parameters:
userId - the ID of a user
albumUpdate - the album to be created
Returns:
The new album ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#albums - Facebook Developers

getAlbumPhotos

public ResponseList<Photo> getAlbumPhotos(java.lang.String albumId)
                                   throws FacebookException
Description copied from interface: AlbumMethods
Returns the photos contained in the album.

Specified by:
getAlbumPhotos in interface AlbumMethods
Parameters:
albumId - the ID of a album
Returns:
photos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album#photos - Facebook Developers

getAlbumPhotos

public ResponseList<Photo> getAlbumPhotos(java.lang.String albumId,
                                          Reading reading)
                                   throws FacebookException
Description copied from interface: AlbumMethods
Returns the photos contained in the album.

Specified by:
getAlbumPhotos in interface AlbumMethods
Parameters:
albumId - the ID of a album
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
photos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album#photos - Facebook Developers

addAlbumPhoto

public java.lang.String addAlbumPhoto(java.lang.String albumId,
                                      Media source)
                               throws FacebookException
Description copied from interface: AlbumMethods
Adds a photo to the album.

Specified by:
addAlbumPhoto in interface AlbumMethods
Parameters:
albumId - the ID of a album
source - photo content
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album#photos - Facebook Developers

addAlbumPhoto

public java.lang.String addAlbumPhoto(java.lang.String albumId,
                                      Media source,
                                      java.lang.String message)
                               throws FacebookException
Description copied from interface: AlbumMethods
Adds a photo to the album.

Specified by:
addAlbumPhoto in interface AlbumMethods
Parameters:
albumId - the ID of a album
source - photo content
message - photo description
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album#photos - Facebook Developers

getAlbumComments

public ResponseList<Comment> getAlbumComments(java.lang.String albumId)
                                       throws FacebookException
Description copied from interface: AlbumMethods
Returns the comments made on the album.

Specified by:
getAlbumComments in interface AlbumMethods
Parameters:
albumId - the ID of a album
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album#comments - Facebook Developers

getAlbumComments

public ResponseList<Comment> getAlbumComments(java.lang.String albumId,
                                              Reading reading)
                                       throws FacebookException
Description copied from interface: AlbumMethods
Returns the comments made on the album.

Specified by:
getAlbumComments in interface AlbumMethods
Parameters:
albumId - the ID of a album
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album#comments - Facebook Developers

commentAlbum

public java.lang.String commentAlbum(java.lang.String albumId,
                                     java.lang.String message)
                              throws FacebookException
Description copied from interface: AlbumMethods
Comments on the album.

Specified by:
commentAlbum in interface AlbumMethods
Parameters:
albumId - the ID of a album
message - comment text
Returns:
The new comment ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album#comments - Facebook Developers

getAlbumLikes

public ResponseList<Like> getAlbumLikes(java.lang.String albumId)
                                 throws FacebookException
Description copied from interface: AlbumMethods
Returns likes made on the album.

Specified by:
getAlbumLikes in interface AlbumMethods
Parameters:
albumId - the ID of a album
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album#likes - Facebook Developers

getAlbumLikes

public ResponseList<Like> getAlbumLikes(java.lang.String albumId,
                                        Reading reading)
                                 throws FacebookException
Description copied from interface: AlbumMethods
Returns likes made on the album.

Specified by:
getAlbumLikes in interface AlbumMethods
Parameters:
albumId - the ID of a album
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album#likes - Facebook Developers

likeAlbum

public boolean likeAlbum(java.lang.String albumId)
                  throws FacebookException
Description copied from interface: AlbumMethods
Likes the album.

Specified by:
likeAlbum in interface AlbumMethods
Parameters:
albumId - the ID of a album
Returns:
true if like is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album#likes - Facebook Developers

unlikeAlbum

public boolean unlikeAlbum(java.lang.String albumId)
                    throws FacebookException
Description copied from interface: AlbumMethods
Unlikes the album.

Specified by:
unlikeAlbum in interface AlbumMethods
Parameters:
albumId - the ID of a album
Returns:
true if unlike is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album#likes - Facebook Developers

getAlbumCoverPhoto

public java.net.URL getAlbumCoverPhoto(java.lang.String albumId)
                                throws FacebookException
Description copied from interface: AlbumMethods
Returns url of the album's cover photo.

Specified by:
getAlbumCoverPhoto in interface AlbumMethods
Parameters:
albumId - the ID of a album
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Album - Facebook Developers - Connections - picture

getBooks

public ResponseList<Book> getBooks()
                            throws FacebookException
Description copied from interface: FavoriteMethods
Returns the books listed on the current user's profile.

Specified by:
getBooks in interface FavoriteMethods
Returns:
books
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - books

getBooks

public ResponseList<Book> getBooks(Reading reading)
                            throws FacebookException
Description copied from interface: FavoriteMethods
Returns the books listed on the current user's profile.

Specified by:
getBooks in interface FavoriteMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
books
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - books

getBooks

public ResponseList<Book> getBooks(java.lang.String userId)
                            throws FacebookException
Description copied from interface: FavoriteMethods
Returns the books listed on a user's profile.

Specified by:
getBooks in interface FavoriteMethods
Parameters:
userId - the ID of a user
Returns:
books
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - books

getBooks

public ResponseList<Book> getBooks(java.lang.String userId,
                                   Reading reading)
                            throws FacebookException
Description copied from interface: FavoriteMethods
Returns the books listed on a user's profile.

Specified by:
getBooks in interface FavoriteMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
books
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - books

getCheckins

public ResponseList<Checkin> getCheckins()
                                  throws FacebookException
Description copied from interface: CheckinMethods
Returns the places that the current user has checked-into or made to the Place Page by the current user or friends of the current user.

Specified by:
getCheckins in interface CheckinMethods
Returns:
checkins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#checkins - Facebook Developers, Page - Facebook Developers

getCheckins

public ResponseList<Checkin> getCheckins(Reading reading)
                                  throws FacebookException
Description copied from interface: CheckinMethods
Returns the places that the current user has checked-into or made to the Place Page by the current user or friends of the current user.

Specified by:
getCheckins in interface CheckinMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
checkins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#checkins - Facebook Developers, Page - Facebook Developers

getCheckins

public ResponseList<Checkin> getCheckins(java.lang.String id)
                                  throws FacebookException
Description copied from interface: CheckinMethods
Returns the places that a user has checked-into or made to the Place Page by the user or friends of the user.

Specified by:
getCheckins in interface CheckinMethods
Parameters:
id - the ID of a user/page
Returns:
checkins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#checkins - Facebook Developers, Page - Facebook Developers

getCheckins

public ResponseList<Checkin> getCheckins(java.lang.String id,
                                         Reading reading)
                                  throws FacebookException
Description copied from interface: CheckinMethods
Returns the places that a user has checked-into or made to the Place Page by the user or friends of the user.

Specified by:
getCheckins in interface CheckinMethods
Parameters:
id - the ID of a user/page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
checkins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#checkins - Facebook Developers, Page - Facebook Developers

checkin

public java.lang.String checkin(CheckinUpdate checkinUpdate)
                         throws FacebookException
Description copied from interface: CheckinMethods
Checkins the place as the current user.

Specified by:
checkin in interface CheckinMethods
Parameters:
checkinUpdate - the checkin to be created
Returns:
The new checkin ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#checkins - Facebook Developers

checkin

public java.lang.String checkin(java.lang.String userId,
                                CheckinUpdate checkinUpdate)
                         throws FacebookException
Description copied from interface: CheckinMethods
Checkins the place as a user.

Specified by:
checkin in interface CheckinMethods
Parameters:
userId - the ID of a user
checkinUpdate - the checkin to be created
Returns:
The new checkin ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#checkins - Facebook Developers

getCheckin

public Checkin getCheckin(java.lang.String checkinId)
                   throws FacebookException
Description copied from interface: CheckinMethods
Returns a single checkin information.

Specified by:
getCheckin in interface CheckinMethods
Parameters:
checkinId - the ID of a checkin
Returns:
checkin
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Checkin - Facebook Developers

getCheckin

public Checkin getCheckin(java.lang.String checkinId,
                          Reading reading)
                   throws FacebookException
Description copied from interface: CheckinMethods
Returns a single checkin information.

Specified by:
getCheckin in interface CheckinMethods
Parameters:
checkinId - the ID of a checkin
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
checkin
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Checkin - Facebook Developers

getCheckinComments

public ResponseList<Comment> getCheckinComments(java.lang.String checkinId)
                                         throws FacebookException
Description copied from interface: CheckinMethods
Returns the comments on a checkin.

Specified by:
getCheckinComments in interface CheckinMethods
Parameters:
checkinId - the ID of a checkin
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Checkin#comments - Facebook Developers

getCheckinComments

public ResponseList<Comment> getCheckinComments(java.lang.String checkinId,
                                                Reading reading)
                                         throws FacebookException
Description copied from interface: CheckinMethods
Returns the comments on a checkin.

Specified by:
getCheckinComments in interface CheckinMethods
Parameters:
checkinId - the ID of a checkin
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Checkin#comments - Facebook Developers

commentCheckin

public java.lang.String commentCheckin(java.lang.String checkinId,
                                       java.lang.String message)
                                throws FacebookException
Description copied from interface: CheckinMethods
Comments on a checkin.

Specified by:
commentCheckin in interface CheckinMethods
Parameters:
checkinId - the ID of a checkin
message - comment text
Returns:
The new comment ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Checkin#comments - Facebook Developers

getCheckinLikes

public ResponseList<Like> getCheckinLikes(java.lang.String checkinId)
                                   throws FacebookException
Description copied from interface: CheckinMethods
Returns the users who like a checkin.

Specified by:
getCheckinLikes in interface CheckinMethods
Parameters:
checkinId - the ID of a checkin
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Checkin#likes - Facebook Developers

getCheckinLikes

public ResponseList<Like> getCheckinLikes(java.lang.String checkinId,
                                          Reading reading)
                                   throws FacebookException
Description copied from interface: CheckinMethods
Returns the users who like a checkin.

Specified by:
getCheckinLikes in interface CheckinMethods
Parameters:
checkinId - the ID of a checkin
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Checkin#likes - Facebook Developers

likeCheckin

public boolean likeCheckin(java.lang.String checkinId)
                    throws FacebookException
Description copied from interface: CheckinMethods
Likes the checkin.

Specified by:
likeCheckin in interface CheckinMethods
Parameters:
checkinId - the ID of a checkin
Returns:
true if like is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Checkin#likes - Facebook Developers

unlikeCheckin

public boolean unlikeCheckin(java.lang.String checkinId)
                      throws FacebookException
Description copied from interface: CheckinMethods
Unlikes the checkin.

Specified by:
unlikeCheckin in interface CheckinMethods
Parameters:
checkinId - the ID of a checkin
Returns:
true if unlike is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Checkin#likes - Facebook Developers

getDomain

public Domain getDomain(java.lang.String domainId)
                 throws FacebookException
Description copied from interface: DomainMethods
Returns the website domain information using Facebook.

Specified by:
getDomain in interface DomainMethods
Parameters:
domainId - the ID of a website domain
Returns:
domain
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Domain - Facebook Developers

getDomainByName

public Domain getDomainByName(java.lang.String domainName)
                       throws FacebookException
Description copied from interface: DomainMethods
Returns the website domain information using Facebook.

Specified by:
getDomainByName in interface DomainMethods
Parameters:
domainName - the name of a website domain
Returns:
domain
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Domain - Facebook Developers

getDomainsByName

public java.util.List<Domain> getDomainsByName(java.lang.String... domainName)
                                        throws FacebookException
Description copied from interface: DomainMethods
Returns the website domains information using Facebook.

Specified by:
getDomainsByName in interface DomainMethods
Parameters:
domainName - the name list of website domain
Returns:
domains
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Domain - Facebook Developers

getEvents

public ResponseList<Event> getEvents()
                              throws FacebookException
Description copied from interface: EventMethods
Returns the events the current user/page is attending.

Specified by:
getEvents in interface EventMethods
Returns:
events
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - events, Page - Facebook Developers - Connections - events

getEvents

public ResponseList<Event> getEvents(Reading reading)
                              throws FacebookException
Description copied from interface: EventMethods
Returns the events the current user/page is attending.

Specified by:
getEvents in interface EventMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
events
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - events, Page - Facebook Developers - Connections - events

getEvents

public ResponseList<Event> getEvents(java.lang.String id)
                              throws FacebookException
Description copied from interface: EventMethods
Returns the events a user/event/page is attending.

Specified by:
getEvents in interface EventMethods
Parameters:
id - the ID of a user
Returns:
events
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - events, Page - Facebook Developers - Connections - events

getEvents

public ResponseList<Event> getEvents(java.lang.String id,
                                     Reading reading)
                              throws FacebookException
Description copied from interface: EventMethods
Returns the events a user/event/page is attending.

Specified by:
getEvents in interface EventMethods
Parameters:
id - the ID of a user/page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
events
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - events, Page - Facebook Developers - Connections - events

createEvent

public java.lang.String createEvent(EventUpdate eventUpdate)
                             throws FacebookException
Description copied from interface: EventMethods
Creates the event for the current user/page.

Specified by:
createEvent in interface EventMethods
Returns:
The new event ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#events - Facebook Developers, Page#events - Facebook Developers - Connections - events

createEvent

public java.lang.String createEvent(java.lang.String id,
                                    EventUpdate eventUpdate)
                             throws FacebookException
Description copied from interface: EventMethods
Creates the event for a user/event/page.

Specified by:
createEvent in interface EventMethods
Parameters:
id - the ID of a user/page
eventUpdate - a event to be created
Returns:
The new event ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#events - Facebook Developers, Page#events - Facebook Developers - Connections - events

getEvent

public Event getEvent(java.lang.String eventId)
               throws FacebookException
Description copied from interface: EventMethods
Returns a single event.

Specified by:
getEvent in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event - Facebook Developers

getEvent

public Event getEvent(java.lang.String eventId,
                      Reading reading)
               throws FacebookException
Description copied from interface: EventMethods
Returns a single event.

Specified by:
getEvent in interface EventMethods
Parameters:
eventId - the ID of a event
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event - Facebook Developers

editEvent

public boolean editEvent(java.lang.String eventId,
                         EventUpdate eventUpdate)
                  throws FacebookException
Description copied from interface: EventMethods
Updates the event.

Specified by:
editEvent in interface EventMethods
Parameters:
eventId - the ID of a event
eventUpdate - the event to be updated
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#events - Facebook Developers, Page#events - Facebook Developers - Connections - events

deleteEvent

public boolean deleteEvent(java.lang.String eventId)
                    throws FacebookException
Description copied from interface: EventMethods
Deletes the event.

Specified by:
deleteEvent in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
true if delete is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#events - Facebook Developers, Page#events - Facebook Developers - Connections - events

postEventLink

public java.lang.String postEventLink(java.lang.String eventId,
                                      java.net.URL link)
                               throws FacebookException
Description copied from interface: EventMethods
Posts the link on a event's wall.

Specified by:
postEventLink in interface EventMethods
Parameters:
eventId - the ID of a event
link - link URL
Returns:
The new link ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#links - Facebook Developers

postEventLink

public java.lang.String postEventLink(java.lang.String eventId,
                                      java.net.URL link,
                                      java.lang.String message)
                               throws FacebookException
Description copied from interface: EventMethods
Posts the link on a event's wall.

Specified by:
postEventLink in interface EventMethods
Parameters:
eventId - the ID of a event
link - link URL
message - link message
Returns:
The new link ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#links - Facebook Developers

postEventStatusMessage

public java.lang.String postEventStatusMessage(java.lang.String eventId,
                                               java.lang.String message)
                                        throws FacebookException
Description copied from interface: EventMethods
Posts the status message on a event's wall.

Specified by:
postEventStatusMessage in interface EventMethods
Parameters:
eventId - the ID of a event
message - status message content
Returns:
The new status message ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#statuses - Facebook Developers

getRSVPStatusAsNoreply

public ResponseList<RSVPStatus> getRSVPStatusAsNoreply(java.lang.String eventId)
                                                throws FacebookException
Description copied from interface: EventMethods
Returns a list of all users who have not replied to the event.

Specified by:
getRSVPStatusAsNoreply in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
a list of all users who have not replied to the event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#noreply - Facebook Developers

getRSVPStatusAsNoreply

public ResponseList<RSVPStatus> getRSVPStatusAsNoreply(java.lang.String eventId,
                                                       java.lang.String userId)
                                                throws FacebookException
Description copied from interface: EventMethods
Returns a single user who have not replied to the event.

Specified by:
getRSVPStatusAsNoreply in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
a single users who have not replied to the event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#noreply - Facebook Developers

getRSVPStatusAsInvited

public ResponseList<RSVPStatus> getRSVPStatusAsInvited(java.lang.String eventId)
                                                throws FacebookException
Description copied from interface: EventMethods
Returns a list of invitees for the event.

Specified by:
getRSVPStatusAsInvited in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
a list of invitees for the event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#invited - Facebook Developers

getRSVPStatusAsInvited

public ResponseList<RSVPStatus> getRSVPStatusAsInvited(java.lang.String eventId,
                                                       java.lang.String userId)
                                                throws FacebookException
Description copied from interface: EventMethods
Checks a specific user has been invited to the event.

Specified by:
getRSVPStatusAsInvited in interface EventMethods
Parameters:
eventId - the ID of a event
userId - the ID of a user
Returns:
the user has been invited to this event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#invited - Facebook Developers

inviteToEvent

public boolean inviteToEvent(java.lang.String eventId,
                             java.lang.String userId)
                      throws FacebookException
Description copied from interface: EventMethods
Invites a user to the event.

Specified by:
inviteToEvent in interface EventMethods
Parameters:
eventId - the ID of a event
userId - the ID of the user
Returns:
true if the invite is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#invited - Facebook Developers

inviteToEvent

public boolean inviteToEvent(java.lang.String eventId,
                             java.lang.String[] userIds)
                      throws FacebookException
Description copied from interface: EventMethods
Invites users to the event.

Specified by:
inviteToEvent in interface EventMethods
Parameters:
eventId - the ID of a event
userIds - the IDs of users
Returns:
true if the invite is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#invited - Facebook Developers

uninviteFromEvent

public boolean uninviteFromEvent(java.lang.String eventId,
                                 java.lang.String userId)
                          throws FacebookException
Description copied from interface: EventMethods
Un-invites user from the event.

Specified by:
uninviteFromEvent in interface EventMethods
Parameters:
eventId - the ID of a event
userId - the ID of a user
Returns:
true if the un-invite is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#invited - Facebook Developers

getRSVPStatusInAttending

public ResponseList<RSVPStatus> getRSVPStatusInAttending(java.lang.String eventId)
                                                  throws FacebookException
Description copied from interface: EventMethods
Returns a list of all users who responded 'yes' to the event.

Specified by:
getRSVPStatusInAttending in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
a list of all users who responded 'yes' to the event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#attending - Facebook Developers

getRSVPStatusInAttending

public ResponseList<RSVPStatus> getRSVPStatusInAttending(java.lang.String eventId,
                                                         java.lang.String userId)
                                                  throws FacebookException
Description copied from interface: EventMethods
Checks a specific user responded 'yes' to the event.

Specified by:
getRSVPStatusInAttending in interface EventMethods
Parameters:
eventId - the ID of a event
userId - the ID of a user
Returns:
a specific user responded 'yes' to the event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#attending - Facebook Developers

rsvpEventAsAttending

public boolean rsvpEventAsAttending(java.lang.String eventId)
                             throws FacebookException
Description copied from interface: EventMethods
RSVPs the current user as 'attending' the event.

Specified by:
rsvpEventAsAttending in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
true if the RSVP is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#attending - Facebook Developers

getRSVPStatusInMaybe

public ResponseList<RSVPStatus> getRSVPStatusInMaybe(java.lang.String eventId)
                                              throws FacebookException
Description copied from interface: EventMethods
Returns a list of all users who responded 'maybe' to the event.

Specified by:
getRSVPStatusInMaybe in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
a list of all users who responded 'maybe' to the event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#maybe - Facebook Developers

getRSVPStatusInMaybe

public ResponseList<RSVPStatus> getRSVPStatusInMaybe(java.lang.String eventId,
                                                     java.lang.String userId)
                                              throws FacebookException
Description copied from interface: EventMethods
Checks a specific user responded 'maybe' to the event.

Specified by:
getRSVPStatusInMaybe in interface EventMethods
Parameters:
eventId - the ID of a event
userId - the ID of a user
Returns:
a specific user responded 'maybe' to the event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#maybe - Facebook Developers

rsvpEventAsMaybe

public boolean rsvpEventAsMaybe(java.lang.String eventId)
                         throws FacebookException
Description copied from interface: EventMethods
RSVPs the current user as 'maybe' the event.

Specified by:
rsvpEventAsMaybe in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
true if the RSVP is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#maybe - Facebook Developers

getRSVPStatusInDeclined

public ResponseList<RSVPStatus> getRSVPStatusInDeclined(java.lang.String eventId)
                                                 throws FacebookException
Description copied from interface: EventMethods
Returns a list of all users who responded 'no' to the event.

Specified by:
getRSVPStatusInDeclined in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
a list of all users who responded 'no' to the event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#declined - Facebook Developers

getRSVPStatusInDeclined

public ResponseList<RSVPStatus> getRSVPStatusInDeclined(java.lang.String eventId,
                                                        java.lang.String userId)
                                                 throws FacebookException
Description copied from interface: EventMethods
Checks a specific user responded 'no' to the event.

Specified by:
getRSVPStatusInDeclined in interface EventMethods
Parameters:
eventId - the ID of a event
userId - the ID of a user
Returns:
a specific user responded 'no' to the event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#declined - Facebook Developers

rsvpEventAsDeclined

public boolean rsvpEventAsDeclined(java.lang.String eventId)
                            throws FacebookException
Description copied from interface: EventMethods
RSVPs the current user as 'declined' the event.

Specified by:
rsvpEventAsDeclined in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
true if the RSVP is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#declined - Facebook Developers

getEventPictureURL

public java.net.URL getEventPictureURL(java.lang.String eventId)
                                throws FacebookException
Description copied from interface: EventMethods
Returns url of the event's profile picture.

Specified by:
getEventPictureURL in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#picture - Facebook Developers

getEventPictureURL

public java.net.URL getEventPictureURL(java.lang.String eventId,
                                       PictureSize size)
                                throws FacebookException
Description copied from interface: EventMethods
Returns url of the event's profile picture.

Specified by:
getEventPictureURL in interface EventMethods
Parameters:
eventId - the ID of a event
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#picture - Facebook Developers

updateEventPicture

public boolean updateEventPicture(java.lang.String eventId,
                                  Media source)
                           throws FacebookException
Description copied from interface: EventMethods
Updates the event's profile picture.

Specified by:
updateEventPicture in interface EventMethods
Parameters:
eventId - the ID of a event
source - picture resource
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#picture - Facebook Developers

deleteEventPicture

public boolean deleteEventPicture(java.lang.String eventId)
                           throws FacebookException
Description copied from interface: EventMethods
Deletes the event's profile picture.

Specified by:
deleteEventPicture in interface EventMethods
Parameters:
eventId - the ID of a event
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#picture - Facebook Developers

getEventPhotos

public ResponseList<Photo> getEventPhotos(java.lang.String eventId)
                                   throws FacebookException
Description copied from interface: EventMethods
Returns the event's photos.

Specified by:
getEventPhotos in interface EventMethods
Parameters:
eventId - the ID of a event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#photos - Facebook Developers

getEventPhotos

public ResponseList<Photo> getEventPhotos(java.lang.String eventId,
                                          Reading reading)
                                   throws FacebookException
Description copied from interface: EventMethods
Returns the event's photos.

Specified by:
getEventPhotos in interface EventMethods
Parameters:
eventId - the ID of a event
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#photos - Facebook Developers

postEventPhoto

public java.lang.String postEventPhoto(java.lang.String eventId,
                                       Media source)
                                throws FacebookException
Description copied from interface: EventMethods
Posts the photo on a event's wall.

Specified by:
postEventPhoto in interface EventMethods
Parameters:
eventId - the ID of a event
source - photo resource
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#photos - Facebook Developers

postEventPhoto

public java.lang.String postEventPhoto(java.lang.String eventId,
                                       Media source,
                                       java.lang.String message)
                                throws FacebookException
Description copied from interface: EventMethods
Posts the photo on a event's wall.

Specified by:
postEventPhoto in interface EventMethods
Parameters:
eventId - the ID of a event
source - photo resource
message - photo description
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#photos - Facebook Developers

getEventVideos

public ResponseList<Video> getEventVideos(java.lang.String eventId)
                                   throws FacebookException
Description copied from interface: EventMethods
Returns the event's videos.

Specified by:
getEventVideos in interface EventMethods
Parameters:
eventId - the ID of a event
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#videos - Facebook Developers

getEventVideos

public ResponseList<Video> getEventVideos(java.lang.String eventId,
                                          Reading reading)
                                   throws FacebookException
Description copied from interface: EventMethods
Returns the event's videos.

Specified by:
getEventVideos in interface EventMethods
Parameters:
eventId - the ID of a event
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#videos - Facebook Developers

postEventVideo

public java.lang.String postEventVideo(java.lang.String eventId,
                                       Media source)
                                throws FacebookException
Description copied from interface: EventMethods
Posts the video on a event's wall.

Specified by:
postEventVideo in interface EventMethods
Parameters:
eventId - the ID of a event
source - video resource
Returns:
The new video ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#videos - Facebook Developers

postEventVideo

public java.lang.String postEventVideo(java.lang.String eventId,
                                       Media source,
                                       java.lang.String title,
                                       java.lang.String description)
                                throws FacebookException
Description copied from interface: EventMethods
Posts the video on a event's wall.

Specified by:
postEventVideo in interface EventMethods
Parameters:
eventId - the ID of a event
source - video resource
title - video title
description - video description
Returns:
The new video ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Event#videos - Facebook Developers

getFamily

public ResponseList<Family> getFamily()
                               throws FacebookException
Description copied from interface: FamilyMethods
Returns the current user's family relationships.

Specified by:
getFamily in interface FamilyMethods
Returns:
family relationships
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - family

getFamily

public ResponseList<Family> getFamily(Reading reading)
                               throws FacebookException
Description copied from interface: FamilyMethods
Returns the current user's family relationships.

Specified by:
getFamily in interface FamilyMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
family relationships
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - family

getFamily

public ResponseList<Family> getFamily(java.lang.String userId)
                               throws FacebookException
Description copied from interface: FamilyMethods
Returns a user's family relationships.

Specified by:
getFamily in interface FamilyMethods
Parameters:
userId - the ID of a user
Returns:
family relationships
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - family

getFamily

public ResponseList<Family> getFamily(java.lang.String userId,
                                      Reading reading)
                               throws FacebookException
Description copied from interface: FamilyMethods
Returns a user's family relationships.

Specified by:
getFamily in interface FamilyMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
family relationships
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - family

getFeed

public ResponseList<Post> getFeed()
                           throws FacebookException
Description copied from interface: PostMethods
Returns the current user's/page's/event's wall.

Specified by:
getFeed in interface PostMethods
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#feed - Facebook Developers

getFeed

public ResponseList<Post> getFeed(Reading reading)
                           throws FacebookException
Description copied from interface: PostMethods
Returns the current user's/page's/event's wall.

Specified by:
getFeed in interface PostMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#feed - Facebook Developers

getFeed

public ResponseList<Post> getFeed(java.lang.String id)
                           throws FacebookException
Description copied from interface: PostMethods
Returns a user's/page's/event's wall.

Specified by:
getFeed in interface PostMethods
Parameters:
id - the ID of a user/page/event
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#feed - Facebook Developers

getFeed

public ResponseList<Post> getFeed(java.lang.String id,
                                  Reading reading)
                           throws FacebookException
Description copied from interface: PostMethods
Returns a user's/page's/event's wall.

Specified by:
getFeed in interface PostMethods
Parameters:
id - the ID of a user/page/event
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#feed - Facebook Developers

getHome

public ResponseList<Post> getHome()
                           throws FacebookException
Description copied from interface: PostMethods
Returns the current user's news feed.

Specified by:
getHome in interface PostMethods
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#home - Facebook Developers

getHome

public ResponseList<Post> getHome(Reading reading)
                           throws FacebookException
Description copied from interface: PostMethods
Returns the current user's news feed.

Specified by:
getHome in interface PostMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#home - Facebook Developers

getPosts

public ResponseList<Post> getPosts()
                            throws FacebookException
Description copied from interface: PostMethods
Returns the current user's/page's own posts.

Specified by:
getPosts in interface PostMethods
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#posts - Facebook Developers

getPosts

public ResponseList<Post> getPosts(Reading reading)
                            throws FacebookException
Description copied from interface: PostMethods
Returns the current user's/page's own posts.

Specified by:
getPosts in interface PostMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#posts - Facebook Developers

getPosts

public ResponseList<Post> getPosts(java.lang.String id)
                            throws FacebookException
Description copied from interface: PostMethods
Returns the user's/page's own posts.

Specified by:
getPosts in interface PostMethods
Parameters:
id - the ID of a user/page
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#posts - Facebook Developers

getPosts

public ResponseList<Post> getPosts(java.lang.String id,
                                   Reading reading)
                            throws FacebookException
Description copied from interface: PostMethods
Returns the user's/page's own posts.

Specified by:
getPosts in interface PostMethods
Parameters:
id - the ID of a user/page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#posts - Facebook Developers

getStatuses

public ResponseList<Post> getStatuses()
                               throws FacebookException
Description copied from interface: PostMethods
Returns the current user's status updates.

Specified by:
getStatuses in interface PostMethods
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#statuses - Facebook Developers

getStatuses

public ResponseList<Post> getStatuses(Reading reading)
                               throws FacebookException
Description copied from interface: PostMethods
Returns the current user's status updates.

Specified by:
getStatuses in interface PostMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#statuses - Facebook Developers

getStatuses

public ResponseList<Post> getStatuses(java.lang.String id)
                               throws FacebookException
Description copied from interface: PostMethods
Returns the user's/page's status updates.

Specified by:
getStatuses in interface PostMethods
Parameters:
id - the ID of a user/page
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#statuses - Facebook Developers

getStatuses

public ResponseList<Post> getStatuses(java.lang.String id,
                                      Reading reading)
                               throws FacebookException
Description copied from interface: PostMethods
Returns the user's/page's status updates.

Specified by:
getStatuses in interface PostMethods
Parameters:
id - the ID of a user/page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#statuses - Facebook Developers

getPost

public Post getPost(java.lang.String postId)
             throws FacebookException
Description copied from interface: PostMethods
Returns a single post.

Specified by:
getPost in interface PostMethods
Parameters:
postId - the ID of the post
Returns:
post
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Post - Facebook Developers

getPost

public Post getPost(java.lang.String postId,
                    Reading reading)
             throws FacebookException
Description copied from interface: PostMethods
Returns a single post.

Specified by:
getPost in interface PostMethods
Parameters:
postId - the ID of the post
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
post
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Post - Facebook Developers

deletePost

public boolean deletePost(java.lang.String postId)
                   throws FacebookException
Description copied from interface: PostMethods
Deletes the post.

Specified by:
deletePost in interface PostMethods
Parameters:
postId - the ID of the post
Returns:
true if delete is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Post - Facebook Developers

getPostComments

public ResponseList<Comment> getPostComments(java.lang.String postId)
                                      throws FacebookException
Description copied from interface: PostMethods
Returns all of the comments on a post.

Specified by:
getPostComments in interface PostMethods
Parameters:
postId - the ID of a post
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Post#comments - Facebook Developers

getPostComments

public ResponseList<Comment> getPostComments(java.lang.String postId,
                                             Reading reading)
                                      throws FacebookException
Description copied from interface: PostMethods
Returns all of the comments on a post.

Specified by:
getPostComments in interface PostMethods
Parameters:
postId - the ID of a post
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Post#comments - Facebook Developers

commentPost

public java.lang.String commentPost(java.lang.String postId,
                                    java.lang.String message)
                             throws FacebookException
Description copied from interface: PostMethods
Comments on the post.

Specified by:
commentPost in interface PostMethods
Parameters:
postId - the ID of the post
message - comment text
Returns:
The new comment ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Post#comments - Facebook Developers

getPostLikes

public ResponseList<Like> getPostLikes(java.lang.String postId)
                                throws FacebookException
Description copied from interface: PostMethods
Returns the likes on a post.

Specified by:
getPostLikes in interface PostMethods
Parameters:
postId - the ID of a post
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Post#likes - Facebook Developers

getPostLikes

public ResponseList<Like> getPostLikes(java.lang.String postId,
                                       Reading reading)
                                throws FacebookException
Description copied from interface: PostMethods
Returns the likes on a post.

Specified by:
getPostLikes in interface PostMethods
Parameters:
postId - the ID of a post
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Post#likes - Facebook Developers

likePost

public boolean likePost(java.lang.String postId)
                 throws FacebookException
Description copied from interface: PostMethods
Likes the post.

Specified by:
likePost in interface PostMethods
Parameters:
postId - the ID of the post
Returns:
true if like is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Post#likes - Facebook Developers

unlikePost

public boolean unlikePost(java.lang.String postId)
                   throws FacebookException
Description copied from interface: PostMethods
Unlikes the post.

Specified by:
unlikePost in interface PostMethods
Parameters:
postId - the ID of the post
Returns:
true if unlike is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Post#likes - Facebook Developers

getPostInsights

public ResponseList<Insight> getPostInsights(java.lang.String postId)
                                      throws FacebookException
Throws:
FacebookException

postFeed

public java.lang.String postFeed(PostUpdate postUpdate)
                          throws FacebookException
Description copied from interface: PostMethods
Creates the post.

Specified by:
postFeed in interface PostMethods
Parameters:
postUpdate - the post to be created
Returns:
The new post ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#posts - Facebook Developers

postFeed

public java.lang.String postFeed(java.lang.String id,
                                 PostUpdate postUpdate)
                          throws FacebookException
Description copied from interface: PostMethods
Creates the post.

Specified by:
postFeed in interface PostMethods
Parameters:
id - the ID of a user/page/event
postUpdate - the post to be created
Returns:
The new post ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#posts - Facebook Developers

postStatusMessage

public java.lang.String postStatusMessage(java.lang.String message)
                                   throws FacebookException
Description copied from interface: PostMethods
Creates the status message.

Specified by:
postStatusMessage in interface PostMethods
Parameters:
message - link message
Returns:
The new status message ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#statuses - Facebook Developers, Page#statuses - Facebook Developers

postStatusMessage

public java.lang.String postStatusMessage(java.lang.String id,
                                          java.lang.String message)
                                   throws FacebookException
Description copied from interface: PostMethods
Creates the status message.

Specified by:
postStatusMessage in interface PostMethods
Parameters:
id - the ID of a user/page
message - link message
Returns:
The new status message ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#statuses - Facebook Developers, Page#statuses - Facebook Developers

getTagged

public ResponseList<Post> getTagged()
                             throws FacebookException
Description copied from interface: PostMethods
Returns the posts the current user is tagged in.

Specified by:
getTagged in interface PostMethods
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - tagged

getTagged

public ResponseList<Post> getTagged(Reading reading)
                             throws FacebookException
Description copied from interface: PostMethods
Returns the posts the current user is tagged in.

Specified by:
getTagged in interface PostMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - tagged

getTagged

public ResponseList<Post> getTagged(java.lang.String userId)
                             throws FacebookException
Description copied from interface: PostMethods
Returns the posts a user is tagged in.

Specified by:
getTagged in interface PostMethods
Parameters:
userId - the ID of a user
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - tagged

getTagged

public ResponseList<Post> getTagged(java.lang.String userId,
                                    Reading reading)
                             throws FacebookException
Description copied from interface: PostMethods
Returns the posts the user is tagged in.

Specified by:
getTagged in interface PostMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - tagged

getFriendlists

public ResponseList<Friendlist> getFriendlists()
                                        throws FacebookException
Description copied from interface: FriendMethods
Returns the current user's friend lists.

Specified by:
getFriendlists in interface FriendMethods
Returns:
friend lists
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - friendlists

getFriendlists

public ResponseList<Friendlist> getFriendlists(Reading reading)
                                        throws FacebookException
Description copied from interface: FriendMethods
Returns the current user's friend lists.

Specified by:
getFriendlists in interface FriendMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
friend lists
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - friendlists

getFriendlists

public ResponseList<Friendlist> getFriendlists(java.lang.String userId)
                                        throws FacebookException
Description copied from interface: FriendMethods
Returns the user's friend lists.

Specified by:
getFriendlists in interface FriendMethods
Parameters:
userId - the ID of a user
Returns:
friend lists
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - friendlists

getFriendlists

public ResponseList<Friendlist> getFriendlists(java.lang.String userId,
                                               Reading reading)
                                        throws FacebookException
Description copied from interface: FriendMethods
Returns the user's friend lists.

Specified by:
getFriendlists in interface FriendMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
friend lists
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - friendlists

getFriendRequests

public ResponseList<FriendRequest> getFriendRequests()
                                              throws FacebookException
Description copied from interface: FriendMethods
Returns the current user's incoming friend requests.

Specified by:
getFriendRequests in interface FriendMethods
Returns:
friend requests
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friendrequests - Facebook Developers

getFriendRequests

public ResponseList<FriendRequest> getFriendRequests(Reading reading)
                                              throws FacebookException
Description copied from interface: FriendMethods
Returns the current user's incoming friend requests.

Specified by:
getFriendRequests in interface FriendMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
friend requests
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friendrequests - Facebook Developers

getFriendRequests

public ResponseList<FriendRequest> getFriendRequests(java.lang.String userId)
                                              throws FacebookException
Description copied from interface: FriendMethods
Returns the user's incoming friend requests.

Specified by:
getFriendRequests in interface FriendMethods
Parameters:
userId - the ID of a user
Returns:
friend requests
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friendrequests - Facebook Developers

getFriendRequests

public ResponseList<FriendRequest> getFriendRequests(java.lang.String userId,
                                                     Reading reading)
                                              throws FacebookException
Description copied from interface: FriendMethods
Returns the user's incoming friend requests.

Specified by:
getFriendRequests in interface FriendMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
friend requests
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friendrequests - Facebook Developers

getFriends

public ResponseList<Friend> getFriends()
                                throws FacebookException
Description copied from interface: FriendMethods
Returns the current user's friends.

Specified by:
getFriends in interface FriendMethods
Returns:
friends
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friends - Facebook Developers

getFriends

public ResponseList<Friend> getFriends(Reading reading)
                                throws FacebookException
Description copied from interface: FriendMethods
Returns the current user's friends.

Specified by:
getFriends in interface FriendMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
friends
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friends - Facebook Developers

getFriends

public ResponseList<Friend> getFriends(java.lang.String userId)
                                throws FacebookException
Description copied from interface: FriendMethods
Returns a user's friends.

Specified by:
getFriends in interface FriendMethods
Parameters:
userId - the ID of a user
Returns:
friends
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friends - Facebook Developers

getFriends

public ResponseList<Friend> getFriends(java.lang.String userId,
                                       Reading reading)
                                throws FacebookException
Description copied from interface: FriendMethods
Returns a user's friends.

Specified by:
getFriends in interface FriendMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
friends
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friends - Facebook Developers

getMutualFriends

public ResponseList<Friend> getMutualFriends(java.lang.String friendUserId)
                                      throws FacebookException
Description copied from interface: FriendMethods
Returns the mutual friends between the current user and friend.

Specified by:
getMutualFriends in interface FriendMethods
Parameters:
friendUserId - the ID of a friend
Returns:
mutual friends
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#mutualfriends - Facebook Developers

getMutualFriends

public ResponseList<Friend> getMutualFriends(java.lang.String friendUserId,
                                             Reading reading)
                                      throws FacebookException
Description copied from interface: FriendMethods
Returns the mutual friends between the current user and friend.

Specified by:
getMutualFriends in interface FriendMethods
Parameters:
friendUserId - the ID of a friend
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
mutual friends
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#mutualfriends - Facebook Developers

getMutualFriends

public ResponseList<Friend> getMutualFriends(java.lang.String userId1,
                                             java.lang.String userId2)
                                      throws FacebookException
Description copied from interface: FriendMethods
Returns the mutual friends between two users.

Specified by:
getMutualFriends in interface FriendMethods
Parameters:
userId1 - the ID of a user
userId2 - the ID of a user
Returns:
mutual friends
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#mutualfriends - Facebook Developers

getMutualFriends

public ResponseList<Friend> getMutualFriends(java.lang.String userId1,
                                             java.lang.String userId2,
                                             Reading reading)
                                      throws FacebookException
Description copied from interface: FriendMethods
Returns the mutual friends between two users.

Specified by:
getMutualFriends in interface FriendMethods
Parameters:
userId1 - the ID of a user
userId2 - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
mutual friends
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#mutualfriends - Facebook Developers

createFriendlist

public java.lang.String createFriendlist(java.lang.String friendlistName)
                                  throws FacebookException
Description copied from interface: FriendMethods
Creates the friend list for the current user.

Specified by:
createFriendlist in interface FriendMethods
Parameters:
friendlistName - friend list name
Returns:
The new friend list ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friendlists - Facebook Developers

createFriendlist

public java.lang.String createFriendlist(java.lang.String userId,
                                         java.lang.String friendlistName)
                                  throws FacebookException
Description copied from interface: FriendMethods
Creates the friend list for a user.

Specified by:
createFriendlist in interface FriendMethods
Parameters:
userId - the ID of a user
friendlistName - friend list name. Maximum 25 characters
Returns:
The new friend list ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friendlists - Facebook Developers

deleteFriendlist

public boolean deleteFriendlist(java.lang.String friendlistId)
                         throws FacebookException
Description copied from interface: FriendMethods
Deletes the friend list.

Specified by:
deleteFriendlist in interface FriendMethods
Parameters:
friendlistId - the ID of the friend list
Returns:
true if delete is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
FriendList - Facebook Developers

addFriendlistMember

public boolean addFriendlistMember(java.lang.String friendlistId,
                                   java.lang.String userId)
                            throws FacebookException
Description copied from interface: FriendMethods
Adds a user to the friend list.

Specified by:
addFriendlistMember in interface FriendMethods
Parameters:
friendlistId - the ID of the friend list
userId - the ID of target user
Returns:
true if add is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
FriendList#members - Facebook Developers

removeFriendlistMember

public boolean removeFriendlistMember(java.lang.String friendlistId,
                                      java.lang.String userId)
                               throws FacebookException
Description copied from interface: FriendMethods
Removes the user from a friend list.

Specified by:
removeFriendlistMember in interface FriendMethods
Parameters:
friendlistId - the ID of a friend list
userId - the ID of a target user
Returns:
true if remove is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
FriendList#members - Facebook Developers

getFriendlist

public Friendlist getFriendlist(java.lang.String friendlistId)
                         throws FacebookException
Description copied from interface: FriendMethods
Returns a single friend list.

Specified by:
getFriendlist in interface FriendMethods
Parameters:
friendlistId - the ID of the friend list
Returns:
friend list
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
FriendList - Facebook Developers

getFriendlist

public Friendlist getFriendlist(java.lang.String friendlistId,
                                Reading reading)
                         throws FacebookException
Description copied from interface: FriendMethods
Returns a single friend list.

Specified by:
getFriendlist in interface FriendMethods
Parameters:
friendlistId - the ID of the friend list
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
friend list
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
FriendList - Facebook Developers

getFriendlistMembers

public ResponseList<Friend> getFriendlistMembers(java.lang.String friendlistId)
                                          throws FacebookException
Description copied from interface: FriendMethods
Returns all of the users who are members of this list.

Specified by:
getFriendlistMembers in interface FriendMethods
Parameters:
friendlistId - the ID of the friend list
Returns:
members of this list
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
FriendList#members - Facebook Developers

getBelongsFriend

public ResponseList<Friend> getBelongsFriend(java.lang.String friendId)
                                      throws FacebookException
Description copied from interface: FriendMethods
Returns the friend if the current user friends with.

Specified by:
getBelongsFriend in interface FriendMethods
Parameters:
friendId - the ID of the friend
Returns:
friend. If the current user is not a friend with the User represented by friendId, returns empty list.
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friends - Facebook Developers

getBelongsFriend

public ResponseList<Friend> getBelongsFriend(java.lang.String friendId,
                                             Reading reading)
                                      throws FacebookException
Description copied from interface: FriendMethods
Returns the friend if the current user friends with.

Specified by:
getBelongsFriend in interface FriendMethods
Parameters:
friendId - the ID of the friend
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
friend. If the current user is not a friend with the User represented by friendId, returns empty list.
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friends - Facebook Developers

getBelongsFriend

public ResponseList<Friend> getBelongsFriend(java.lang.String userId,
                                             java.lang.String friendId)
                                      throws FacebookException
Description copied from interface: FriendMethods
Returns the friend if a user friends with.

Specified by:
getBelongsFriend in interface FriendMethods
Parameters:
userId - the ID of a user
friendId - the ID of the friend
Returns:
friend. If the user is not a friend with the User represented by friendId, returns empty list.
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friends - Facebook Developers

getBelongsFriend

public ResponseList<Friend> getBelongsFriend(java.lang.String userId,
                                             java.lang.String friendId,
                                             Reading reading)
                                      throws FacebookException
Description copied from interface: FriendMethods
Returns the friend if a user friends with.

Specified by:
getBelongsFriend in interface FriendMethods
Parameters:
userId - the ID of a user
friendId - the ID of the friend
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
friend. If the user is not a friend with the User represented by friendId, returns empty list.
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#friends - Facebook Developers

getGames

public ResponseList<Game> getGames()
                            throws FacebookException
Description copied from interface: FavoriteMethods
Returns the games the current user has added to the Arts and Entertainment section of their profile.

Specified by:
getGames in interface FavoriteMethods
Returns:
games
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - games

getGames

public ResponseList<Game> getGames(Reading reading)
                            throws FacebookException
Description copied from interface: FavoriteMethods
Returns the games the current user has added to the Arts and Entertainment section of their profile.

Specified by:
getGames in interface FavoriteMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
games
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - games

getGames

public ResponseList<Game> getGames(java.lang.String userId)
                            throws FacebookException
Description copied from interface: FavoriteMethods
Returns the games a user has added to the Arts and Entertainment section of their profile.

Specified by:
getGames in interface FavoriteMethods
Parameters:
userId - the ID of a user
Returns:
games
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - games

getGames

public ResponseList<Game> getGames(java.lang.String userId,
                                   Reading reading)
                            throws FacebookException
Description copied from interface: FavoriteMethods
Returns the games a user has added to the Arts and Entertainment section of their profile.

Specified by:
getGames in interface FavoriteMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
games
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - games

getMovies

public ResponseList<Movie> getMovies()
                              throws FacebookException
Description copied from interface: FavoriteMethods
Returns the movies listed on the current user's profile.

Specified by:
getMovies in interface FavoriteMethods
Returns:
movies
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - movies

getMovies

public ResponseList<Movie> getMovies(Reading reading)
                              throws FacebookException
Description copied from interface: FavoriteMethods
Returns the movies listed on the current user's profile.

Specified by:
getMovies in interface FavoriteMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
movies
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - movies

getMovies

public ResponseList<Movie> getMovies(java.lang.String userId)
                              throws FacebookException
Description copied from interface: FavoriteMethods
Returns the movies listed on a user's profile.

Specified by:
getMovies in interface FavoriteMethods
Parameters:
userId - the ID of a user
Returns:
movies
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - movies

getMovies

public ResponseList<Movie> getMovies(java.lang.String userId,
                                     Reading reading)
                              throws FacebookException
Description copied from interface: FavoriteMethods
Returns the movies listed on a user's profile.

Specified by:
getMovies in interface FavoriteMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
movies
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - movies

getMusic

public ResponseList<Music> getMusic()
                             throws FacebookException
Description copied from interface: FavoriteMethods
Returns the music listed on the current user's profile.

Specified by:
getMusic in interface FavoriteMethods
Returns:
music
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - music

getMusic

public ResponseList<Music> getMusic(Reading reading)
                             throws FacebookException
Description copied from interface: FavoriteMethods
Returns the music listed on the current user's profile.

Specified by:
getMusic in interface FavoriteMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
music
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - music

getMusic

public ResponseList<Music> getMusic(java.lang.String userId)
                             throws FacebookException
Description copied from interface: FavoriteMethods
Returns the music listed on a user's profile.

Specified by:
getMusic in interface FavoriteMethods
Parameters:
userId - the ID of a user
Returns:
music
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - music

getMusic

public ResponseList<Music> getMusic(java.lang.String userId,
                                    Reading reading)
                             throws FacebookException
Description copied from interface: FavoriteMethods
Returns the music listed on a user's profile.

Specified by:
getMusic in interface FavoriteMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
music
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - music

getTelevision

public ResponseList<Television> getTelevision()
                                       throws FacebookException
Description copied from interface: FavoriteMethods
Returns the television listed on the current user's profile.

Specified by:
getTelevision in interface FavoriteMethods
Returns:
television
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - television

getTelevision

public ResponseList<Television> getTelevision(Reading reading)
                                       throws FacebookException
Description copied from interface: FavoriteMethods
Returns the television listed on the current user's profile.

Specified by:
getTelevision in interface FavoriteMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
television
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - television

getTelevision

public ResponseList<Television> getTelevision(java.lang.String userId)
                                       throws FacebookException
Description copied from interface: FavoriteMethods
Returns the television listed on a user's profile.

Specified by:
getTelevision in interface FavoriteMethods
Parameters:
userId - the ID of a user
Returns:
television
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - television

getTelevision

public ResponseList<Television> getTelevision(java.lang.String userId,
                                              Reading reading)
                                       throws FacebookException
Description copied from interface: FavoriteMethods
Returns the television listed on a user's profile.

Specified by:
getTelevision in interface FavoriteMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
television
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - television

getInterests

public ResponseList<Interest> getInterests()
                                    throws FacebookException
Description copied from interface: FavoriteMethods
Returns the interests listed on the current user's profile.

Specified by:
getInterests in interface FavoriteMethods
Returns:
interests
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - interests

getInterests

public ResponseList<Interest> getInterests(Reading reading)
                                    throws FacebookException
Description copied from interface: FavoriteMethods
Returns the interests listed on the current user's profile.

Specified by:
getInterests in interface FavoriteMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
interests
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - interests

getInterests

public ResponseList<Interest> getInterests(java.lang.String userId)
                                    throws FacebookException
Description copied from interface: FavoriteMethods
Returns the interests listed on a user's profile.

Specified by:
getInterests in interface FavoriteMethods
Parameters:
userId - the ID of a user
Returns:
interests
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - interests

getInterests

public ResponseList<Interest> getInterests(java.lang.String userId,
                                           Reading reading)
                                    throws FacebookException
Description copied from interface: FavoriteMethods
Returns the interests listed on a user's profile.

Specified by:
getInterests in interface FavoriteMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
interests
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - interests

getGroups

public ResponseList<Group> getGroups()
                              throws FacebookException
Description copied from interface: GroupMethods
Returns the Groups that the current user belongs to.

Specified by:
getGroups in interface GroupMethods
Returns:
groups
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#groups - Facebook Developers

getGroups

public ResponseList<Group> getGroups(Reading reading)
                              throws FacebookException
Description copied from interface: GroupMethods
Returns the Groups that the current user belongs to.

Specified by:
getGroups in interface GroupMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
groups
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#groups - Facebook Developers

getGroups

public ResponseList<Group> getGroups(java.lang.String userId)
                              throws FacebookException
Description copied from interface: GroupMethods
Returns the Groups that a user belongs to.

Specified by:
getGroups in interface GroupMethods
Parameters:
userId - the ID of a user
Returns:
groups
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#groups - Facebook Developers

getGroups

public ResponseList<Group> getGroups(java.lang.String userId,
                                     Reading reading)
                              throws FacebookException
Description copied from interface: GroupMethods
Returns the Groups that a user belongs to.

Specified by:
getGroups in interface GroupMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
groups
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#groups - Facebook Developers

getGroup

public Group getGroup(java.lang.String groupId)
               throws FacebookException
Description copied from interface: GroupMethods
Returns a single group.

Specified by:
getGroup in interface GroupMethods
Parameters:
groupId - the ID of the group
Returns:
group
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group - Facebook Developers

getGroup

public Group getGroup(java.lang.String groupId,
                      Reading reading)
               throws FacebookException
Description copied from interface: GroupMethods
Returns a single group.

Specified by:
getGroup in interface GroupMethods
Parameters:
groupId - the ID of the group
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
group
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group - Facebook Developers

getGroupFeed

public ResponseList<Post> getGroupFeed(java.lang.String groupId)
                                throws FacebookException
Description copied from interface: GroupMethods
Returns the group's wall.

Specified by:
getGroupFeed in interface GroupMethods
Parameters:
groupId - the ID of the group
Returns:
group's feed
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group#feed - Facebook Developers

getGroupFeed

public ResponseList<Post> getGroupFeed(java.lang.String groupId,
                                       Reading reading)
                                throws FacebookException
Description copied from interface: GroupMethods
Returns the group's wall.

Specified by:
getGroupFeed in interface GroupMethods
Parameters:
groupId - the ID of the group
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
group's feed
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group#feed - Facebook Developers

getGroupMembers

public ResponseList<GroupMember> getGroupMembers(java.lang.String groupId)
                                          throws FacebookException
Description copied from interface: GroupMethods
Returns all of the users who are members of a group.

Specified by:
getGroupMembers in interface GroupMethods
Parameters:
groupId - the ID of a group
Returns:
all of the users who are members of the group
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group - Facebook Developers - Connections - members

getGroupMembers

public ResponseList<GroupMember> getGroupMembers(java.lang.String groupId,
                                                 Reading reading)
                                          throws FacebookException
Description copied from interface: GroupMethods
Returns all of the users who are members of a group.

Specified by:
getGroupMembers in interface GroupMethods
Parameters:
groupId - the ID of a group
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
all of the users who are members of the group
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group - Facebook Developers - Connections - members

getGroupPictureURL

public java.net.URL getGroupPictureURL(java.lang.String groupId)
                                throws FacebookException
Description copied from interface: GroupMethods
Returns url of a group's profile picture.

Specified by:
getGroupPictureURL in interface GroupMethods
Parameters:
groupId - the ID of a group
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group - Facebook Developers - Connections - picture

getGroupDocs

public ResponseList<GroupDoc> getGroupDocs(java.lang.String groupId)
                                    throws FacebookException
Description copied from interface: GroupMethods
Returns the docs in a group.

Specified by:
getGroupDocs in interface GroupMethods
Parameters:
groupId - the ID of a group
Returns:
docs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group - Facebook Developers - Connections - docs

getGroupDocs

public ResponseList<GroupDoc> getGroupDocs(java.lang.String groupId,
                                           Reading reading)
                                    throws FacebookException
Description copied from interface: GroupMethods
Returns the docs in a group.

Specified by:
getGroupDocs in interface GroupMethods
Parameters:
groupId - the ID of a group
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
docs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group - Facebook Developers - Connections - docs

postGroupLink

public java.lang.String postGroupLink(java.lang.String groupId,
                                      java.net.URL linkURL)
                               throws FacebookException
Description copied from interface: GroupMethods
Posts the link on a group's wall.

Specified by:
postGroupLink in interface GroupMethods
Parameters:
groupId - the ID of a group
linkURL - link URL
Returns:
The new link ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group#links - Facebook Developers

postGroupLink

public java.lang.String postGroupLink(java.lang.String groupId,
                                      java.net.URL linkURL,
                                      java.lang.String message)
                               throws FacebookException
Description copied from interface: GroupMethods
Posts the link on a group's wall.

Specified by:
postGroupLink in interface GroupMethods
Parameters:
groupId - the ID of a group
linkURL - link URL
message - link message
Returns:
The new link ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group#links - Facebook Developers

postGroupFeed

public java.lang.String postGroupFeed(java.lang.String groupId,
                                      PostUpdate postUpdate)
                               throws FacebookException
Description copied from interface: GroupMethods
Creates the post on a group's wall.

Specified by:
postGroupFeed in interface GroupMethods
Parameters:
groupId - the ID of a group
postUpdate - the post to be created
Returns:
The new post ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group#posts - Facebook Developers

postGroupStatusMessage

public java.lang.String postGroupStatusMessage(java.lang.String groupId,
                                               java.lang.String message)
                                        throws FacebookException
Description copied from interface: GroupMethods
Posts the status message on a group's wall.

Specified by:
postGroupStatusMessage in interface GroupMethods
Parameters:
groupId - the ID of a group
message - status message content
Returns:
The new status message ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Group#statuses - Facebook Developers

getInbox

public InboxResponseList<Message> getInbox()
                                    throws FacebookException
Description copied from interface: MessageMethods
Returns the messages in the current user's inbox.

Specified by:
getInbox in interface MessageMethods
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - inbox

getInbox

public InboxResponseList<Message> getInbox(Reading reading)
                                    throws FacebookException
Description copied from interface: MessageMethods
Returns the messages in the current user's inbox.

Specified by:
getInbox in interface MessageMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - inbox

getInbox

public InboxResponseList<Message> getInbox(java.lang.String userId)
                                    throws FacebookException
Description copied from interface: MessageMethods
Returns the messages in a user's inbox.

Specified by:
getInbox in interface MessageMethods
Parameters:
userId - the ID of a user
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - inbox

getInbox

public InboxResponseList<Message> getInbox(java.lang.String userId,
                                           Reading reading)
                                    throws FacebookException
Description copied from interface: MessageMethods
Returns the messages in a user's inbox.

Specified by:
getInbox in interface MessageMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - inbox

getOutbox

public ResponseList<Message> getOutbox()
                                throws FacebookException
Description copied from interface: MessageMethods
Returns the messages in the current user's outbox.

Specified by:
getOutbox in interface MessageMethods
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - outbox

getOutbox

public ResponseList<Message> getOutbox(Reading reading)
                                throws FacebookException
Description copied from interface: MessageMethods
Returns the messages in the current user's outbox.

Specified by:
getOutbox in interface MessageMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - outbox

getOutbox

public ResponseList<Message> getOutbox(java.lang.String userId)
                                throws FacebookException
Description copied from interface: MessageMethods
Returns the messages in a user's outbox.

Specified by:
getOutbox in interface MessageMethods
Parameters:
userId - the ID of a user
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - outbox

getOutbox

public ResponseList<Message> getOutbox(java.lang.String userId,
                                       Reading reading)
                                throws FacebookException
Description copied from interface: MessageMethods
Returns the messages in a user's outbox.

Specified by:
getOutbox in interface MessageMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - outbox

getUpdates

public ResponseList<Message> getUpdates()
                                 throws FacebookException
Description copied from interface: MessageMethods
Returns the updates in the current user's inbox.

Specified by:
getUpdates in interface MessageMethods
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - updates

getUpdates

public ResponseList<Message> getUpdates(Reading reading)
                                 throws FacebookException
Description copied from interface: MessageMethods
Returns the updates in the current user's inbox.

Specified by:
getUpdates in interface MessageMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - updates

getUpdates

public ResponseList<Message> getUpdates(java.lang.String userId)
                                 throws FacebookException
Description copied from interface: MessageMethods
Returns the updates in a user's inbox.

Specified by:
getUpdates in interface MessageMethods
Parameters:
userId - the ID of a user
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - updates

getUpdates

public ResponseList<Message> getUpdates(java.lang.String userId,
                                        Reading reading)
                                 throws FacebookException
Description copied from interface: MessageMethods
Returns the updates in a user's inbox.

Specified by:
getUpdates in interface MessageMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
messages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - updates

getMessage

public Message getMessage(java.lang.String messageId)
                   throws FacebookException
Description copied from interface: MessageMethods
Returns a single message.

Specified by:
getMessage in interface MessageMethods
Parameters:
messageId - the ID of the message
Returns:
message
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Message - Facebook Developers

getMessage

public Message getMessage(java.lang.String messageId,
                          Reading reading)
                   throws FacebookException
Description copied from interface: MessageMethods
Returns a single message.

Specified by:
getMessage in interface MessageMethods
Parameters:
messageId - the ID of the message
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
message
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Message - Facebook Developers

getUserLikes

public ResponseList<Like> getUserLikes()
                                throws FacebookException
Description copied from interface: LikeMethods
Returns all the pages the current user has liked.

Specified by:
getUserLikes in interface LikeMethods
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getUserLikes

public ResponseList<Like> getUserLikes(Reading reading)
                                throws FacebookException
Description copied from interface: LikeMethods
Returns all the pages the current user has liked.

Specified by:
getUserLikes in interface LikeMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getUserLikes

public ResponseList<Like> getUserLikes(java.lang.String userId)
                                throws FacebookException
Description copied from interface: LikeMethods
Returns all the pages a user has liked.

Specified by:
getUserLikes in interface LikeMethods
Parameters:
userId - the ID of a user
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getUserLikes

public ResponseList<Like> getUserLikes(java.lang.String userId,
                                       Reading reading)
                                throws FacebookException
Description copied from interface: LikeMethods
Returns all the pages a user has liked.

Specified by:
getUserLikes in interface LikeMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getComment

public Comment getComment(java.lang.String commentId)
                   throws FacebookException
Description copied from interface: CommentMethods
Returns a single comment.

Specified by:
getComment in interface CommentMethods
Parameters:
commentId - the ID of a comment
Returns:
comment
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment - Facebook Developers

deleteComment

public boolean deleteComment(java.lang.String commentId)
                      throws FacebookException
Description copied from interface: CommentMethods
Deletes the comment.

Specified by:
deleteComment in interface CommentMethods
Parameters:
commentId - the ID of a comment
Returns:
true if delete is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment - Facebook Developers

getCommentLikes

public ResponseList<Like> getCommentLikes(java.lang.String commentId)
                                   throws FacebookException
Description copied from interface: CommentMethods
Returns the likes on a comment.

Specified by:
getCommentLikes in interface CommentMethods
Parameters:
commentId - the ID of a comment
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment#likes - Facebook Developers

getCommentLikes

public ResponseList<Like> getCommentLikes(java.lang.String commentId,
                                          Reading reading)
                                   throws FacebookException
Description copied from interface: CommentMethods
Returns the likes on a comment.

Specified by:
getCommentLikes in interface CommentMethods
Parameters:
commentId - the ID of a comment
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment#likes - Facebook Developers

likeComment

public boolean likeComment(java.lang.String commentId)
                    throws FacebookException
Description copied from interface: CommentMethods
Likes the comment.

Specified by:
likeComment in interface CommentMethods
Parameters:
commentId - the ID of a comment
Returns:
true if like is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment#likes - Facebook Developers

unlikeComment

public boolean unlikeComment(java.lang.String commentId)
                      throws FacebookException
Description copied from interface: CommentMethods
Unlikes the comment.

Specified by:
unlikeComment in interface CommentMethods
Parameters:
commentId - the ID of a comment
Returns:
true if unlike is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Comment#likes - Facebook Developers

getLinks

public ResponseList<Link> getLinks()
                            throws FacebookException
Description copied from interface: LinkMethods
Returns the current user's/page's/event's posted links.

Specified by:
getLinks in interface LinkMethods
Returns:
links
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#links - Facebook Developers

getLinks

public ResponseList<Link> getLinks(Reading reading)
                            throws FacebookException
Description copied from interface: LinkMethods
Returns the current user's/page's/event's posted links.

Specified by:
getLinks in interface LinkMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
links
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#links - Facebook Developers

getLinks

public ResponseList<Link> getLinks(java.lang.String id)
                            throws FacebookException
Description copied from interface: LinkMethods
Returns a user's/page's/event's posted links.

Specified by:
getLinks in interface LinkMethods
Parameters:
id - the ID of a user/page/event
Returns:
links
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#links - Facebook Developers

getLinks

public ResponseList<Link> getLinks(java.lang.String id,
                                   Reading reading)
                            throws FacebookException
Description copied from interface: LinkMethods
Returns a user's/page's/event's posted links.

Specified by:
getLinks in interface LinkMethods
Parameters:
id - the ID of a user/page/event
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
links
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#links - Facebook Developers

getLink

public Link getLink(java.lang.String linkId)
             throws FacebookException
Description copied from interface: LinkMethods
Returns the link shared on a user's wall.

Specified by:
getLink in interface LinkMethods
Parameters:
linkId - the ID of the link
Returns:
link
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Link - Facebook Developers

getLink

public Link getLink(java.lang.String linkId,
                    Reading reading)
             throws FacebookException
Description copied from interface: LinkMethods
Returns the link shared on a user's wall.

Specified by:
getLink in interface LinkMethods
Parameters:
linkId - the ID of the link
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
link
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Link - Facebook Developers

getLinkComments

public ResponseList<Comment> getLinkComments(java.lang.String linkId)
                                      throws FacebookException
Description copied from interface: LinkMethods
Returns all of the comments on a link.

Specified by:
getLinkComments in interface LinkMethods
Parameters:
linkId - the ID of a link
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Link#comments - Facebook Developers

getLinkComments

public ResponseList<Comment> getLinkComments(java.lang.String linkId,
                                             Reading reading)
                                      throws FacebookException
Description copied from interface: LinkMethods
Returns all of the comments on a link.

Specified by:
getLinkComments in interface LinkMethods
Parameters:
linkId - the ID of a link
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Link#comments - Facebook Developers

commentLink

public java.lang.String commentLink(java.lang.String linkId,
                                    java.lang.String message)
                             throws FacebookException
Description copied from interface: LinkMethods
Comments on the link.

Specified by:
commentLink in interface LinkMethods
Parameters:
linkId - the ID of the link
message - comment text
Returns:
The new comment ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Link#comments - Facebook Developers

getLinkLikes

public ResponseList<Like> getLinkLikes(java.lang.String linkId)
                                throws FacebookException
Description copied from interface: LinkMethods
Returns the likes on a link.

Specified by:
getLinkLikes in interface LinkMethods
Parameters:
linkId - the ID of a link
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Link#likes - Facebook Developers

getLinkLikes

public ResponseList<Like> getLinkLikes(java.lang.String linkId,
                                       Reading reading)
                                throws FacebookException
Description copied from interface: LinkMethods
Returns the likes on a link.

Specified by:
getLinkLikes in interface LinkMethods
Parameters:
linkId - the ID of a link
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Link#likes - Facebook Developers

likeLink

public boolean likeLink(java.lang.String linkId)
                 throws FacebookException
Description copied from interface: LinkMethods
Likes the link.

Specified by:
likeLink in interface LinkMethods
Parameters:
linkId - the ID of the link
Returns:
true if like is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Link#likes - Facebook Developers

unlikeLink

public boolean unlikeLink(java.lang.String linkId)
                   throws FacebookException
Description copied from interface: LinkMethods
Unlikes the link.

Specified by:
unlikeLink in interface LinkMethods
Parameters:
linkId - the ID of the link
Returns:
true if unlike is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Link#likes - Facebook Developers

postLink

public java.lang.String postLink(java.net.URL link)
                          throws FacebookException
Description copied from interface: PostMethods
Creates the link.

Specified by:
postLink in interface PostMethods
Parameters:
link - link URL
Returns:
The new link ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#links - Facebook Developers

postLink

public java.lang.String postLink(java.net.URL link,
                                 java.lang.String message)
                          throws FacebookException
Description copied from interface: PostMethods
Creates the link.

Specified by:
postLink in interface PostMethods
Parameters:
link - link URL
message - link message
Returns:
The new link ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#links - Facebook Developers

postLink

public java.lang.String postLink(java.lang.String userId,
                                 java.net.URL link)
                          throws FacebookException
Description copied from interface: PostMethods
Creates the link.

Specified by:
postLink in interface PostMethods
Parameters:
userId - the ID of a user
link - link URL
Returns:
The new link ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#links - Facebook Developers

postLink

public java.lang.String postLink(java.lang.String userId,
                                 java.net.URL link,
                                 java.lang.String message)
                          throws FacebookException
Description copied from interface: PostMethods
Creates the link.

Specified by:
postLink in interface PostMethods
Parameters:
userId - the ID of a user
link - link URL
message - link message
Returns:
The new link ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#links - Facebook Developers

getLocations

public ResponseList<Location> getLocations()
                                    throws FacebookException
Description copied from interface: LocationMethods
Returns the posts with location.

Specified by:
getLocations in interface LocationMethods
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - locations

getLocations

public ResponseList<Location> getLocations(Reading reading)
                                    throws FacebookException
Description copied from interface: LocationMethods
Returns the posts with location.

Specified by:
getLocations in interface LocationMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - locations

getLocations

public ResponseList<Location> getLocations(java.lang.String userId)
                                    throws FacebookException
Description copied from interface: LocationMethods
Returns the posts with location.

Specified by:
getLocations in interface LocationMethods
Parameters:
userId - the ID of a user
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - locations

getLocations

public ResponseList<Location> getLocations(java.lang.String userId,
                                           Reading reading)
                                    throws FacebookException
Description copied from interface: LocationMethods
Returns the posts with location.

Specified by:
getLocations in interface LocationMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - locations

getNotes

public ResponseList<Note> getNotes()
                            throws FacebookException
Description copied from interface: NoteMethods
Returns the current user's/page's notes.

Specified by:
getNotes in interface NoteMethods
Returns:
notes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

getNotes

public ResponseList<Note> getNotes(Reading reading)
                            throws FacebookException
Description copied from interface: NoteMethods
Returns the current user's/page's notes.

Specified by:
getNotes in interface NoteMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
notes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

getNotes

public ResponseList<Note> getNotes(java.lang.String id)
                            throws FacebookException
Description copied from interface: NoteMethods
Returns a user's/page's notes.

Specified by:
getNotes in interface NoteMethods
Parameters:
id - the ID of a user/page
Returns:
notes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

getNotes

public ResponseList<Note> getNotes(java.lang.String id,
                                   Reading reading)
                            throws FacebookException
Description copied from interface: NoteMethods
Returns a user's/page's notes.

Specified by:
getNotes in interface NoteMethods
Parameters:
id - the ID of a user/page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
notes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

createNote

public java.lang.String createNote(java.lang.String subject,
                                   java.lang.String message)
                            throws FacebookException
Description copied from interface: NoteMethods
Creates the current user's/page's note.

Specified by:
createNote in interface NoteMethods
Parameters:
subject - the subject of the note
message - note content
Returns:
The new note ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

createNote

public java.lang.String createNote(java.lang.String id,
                                   java.lang.String subject,
                                   java.lang.String message)
                            throws FacebookException
Description copied from interface: NoteMethods
Creates the note on behalf of a user/page.

Specified by:
createNote in interface NoteMethods
Parameters:
id - the ID of a user/page
subject - the subject of the note
message - note content
Returns:
The new note ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notes - Facebook Developers, Page#notes - Facebook Developers

getNote

public Note getNote(java.lang.String noteId)
             throws FacebookException
Description copied from interface: NoteMethods
Returns a note.

Specified by:
getNote in interface NoteMethods
Parameters:
noteId - the ID of the note
Returns:
note
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note - Facebook Developers

getNote

public Note getNote(java.lang.String noteId,
                    Reading reading)
             throws FacebookException
Description copied from interface: NoteMethods
Returns a note.

Specified by:
getNote in interface NoteMethods
Parameters:
noteId - the ID of the note
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
note
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note - Facebook Developers

getNoteComments

public ResponseList<Comment> getNoteComments(java.lang.String noteId)
                                      throws FacebookException
Description copied from interface: NoteMethods
Returns all of the comments on a note.

Specified by:
getNoteComments in interface NoteMethods
Parameters:
noteId - the ID of a note
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#comments - Facebook Developers

getNoteComments

public ResponseList<Comment> getNoteComments(java.lang.String noteId,
                                             Reading reading)
                                      throws FacebookException
Description copied from interface: NoteMethods
Returns all of the comments on a note.

Specified by:
getNoteComments in interface NoteMethods
Parameters:
noteId - the ID of a note
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#comments - Facebook Developers

commentNote

public java.lang.String commentNote(java.lang.String noteId,
                                    java.lang.String message)
                             throws FacebookException
Description copied from interface: NoteMethods
Comments on the note.

Specified by:
commentNote in interface NoteMethods
Parameters:
noteId - the ID of the note
message - comment text
Returns:
The new comment ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#comments - Facebook Developers

getNoteLikes

public ResponseList<Like> getNoteLikes(java.lang.String noteId)
                                throws FacebookException
Description copied from interface: NoteMethods
Returns the likes made on a note.

Specified by:
getNoteLikes in interface NoteMethods
Parameters:
noteId - the ID of a note
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#likes - Facebook Developers

getNoteLikes

public ResponseList<Like> getNoteLikes(java.lang.String noteId,
                                       Reading reading)
                                throws FacebookException
Description copied from interface: NoteMethods
Returns the likes made on a note.

Specified by:
getNoteLikes in interface NoteMethods
Parameters:
noteId - the ID of a note
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#likes - Facebook Developers

likeNote

public boolean likeNote(java.lang.String noteId)
                 throws FacebookException
Description copied from interface: NoteMethods
Likes the note.

Specified by:
likeNote in interface NoteMethods
Parameters:
noteId - the ID of the note
Returns:
true if like is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#likes - Facebook Developers

unlikeNote

public boolean unlikeNote(java.lang.String noteId)
                   throws FacebookException
Description copied from interface: NoteMethods
Unlikes the note.

Specified by:
unlikeNote in interface NoteMethods
Parameters:
noteId - the ID of the note
Returns:
true if unlike is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Note#likes - Facebook Developers

getNotifications

public ResponseList<Notification> getNotifications()
                                            throws FacebookException
Description copied from interface: NotificationMethods
Returns the notifications for the current user.

Specified by:
getNotifications in interface NotificationMethods
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

public ResponseList<Notification> getNotifications(boolean includeRead)
                                            throws FacebookException
Description copied from interface: NotificationMethods
Returns the notifications for the current user.

Specified by:
getNotifications in interface NotificationMethods
Parameters:
includeRead - enables you to see notifications that the user has already read in addition to the ones which are unread
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

public ResponseList<Notification> getNotifications(Reading reading)
                                            throws FacebookException
Description copied from interface: NotificationMethods
Returns the notifications for the current user.

Specified by:
getNotifications in interface NotificationMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

public ResponseList<Notification> getNotifications(Reading reading,
                                                   boolean includeRead)
                                            throws FacebookException
Description copied from interface: NotificationMethods
Returns the notifications for the current user.

Specified by:
getNotifications in interface NotificationMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
includeRead - enables you to see notifications that the user has already read in addition to the ones which are unread
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

public ResponseList<Notification> getNotifications(java.lang.String userId)
                                            throws FacebookException
Description copied from interface: NotificationMethods
Returns the notifications for a user.

Specified by:
getNotifications in interface NotificationMethods
Parameters:
userId - the ID of a user
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

public ResponseList<Notification> getNotifications(java.lang.String userId,
                                                   boolean includeRead)
                                            throws FacebookException
Description copied from interface: NotificationMethods
Returns the notifications for a user.

Specified by:
getNotifications in interface NotificationMethods
Parameters:
userId - the ID of a user
includeRead - enables you to see notifications that the user has already read in addition to the ones which are unread
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

public ResponseList<Notification> getNotifications(java.lang.String userId,
                                                   Reading reading)
                                            throws FacebookException
Description copied from interface: NotificationMethods
Returns the notifications for a user.

Specified by:
getNotifications in interface NotificationMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getNotifications

public ResponseList<Notification> getNotifications(java.lang.String userId,
                                                   Reading reading,
                                                   boolean includeRead)
                                            throws FacebookException
Description copied from interface: NotificationMethods
Returns the notifications for a user.

Specified by:
getNotifications in interface NotificationMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
includeRead - enables you to see notifications that the user has already read in addition to the ones which are unread
Returns:
notifications
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

markNotificationAsRead

public boolean markNotificationAsRead(java.lang.String notificationId)
                               throws FacebookException
Description copied from interface: NotificationMethods
Marks the notification as read.

Specified by:
markNotificationAsRead in interface NotificationMethods
Parameters:
notificationId - the ID of the notification
Returns:
true if mark as read is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#notifications - Facebook Developers

getPage

public Page getPage()
             throws FacebookException
Description copied from interface: PageMethods
Returns the current page.

Specified by:
getPage in interface PageMethods
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPage

public Page getPage(Reading reading)
             throws FacebookException
Description copied from interface: PageMethods
Returns the current page.

Specified by:
getPage in interface PageMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPage

public Page getPage(java.lang.String pageId)
             throws FacebookException
Description copied from interface: PageMethods
Returns the page.

Specified by:
getPage in interface PageMethods
Parameters:
pageId - the ID of the page
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPage

public Page getPage(java.lang.String pageId,
                    Reading reading)
             throws FacebookException
Description copied from interface: PageMethods
Returns the page.

Specified by:
getPage in interface PageMethods
Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPagePictureURL

public java.net.URL getPagePictureURL()
                               throws FacebookException
Description copied from interface: PageMethods
Returns the url of a page's profile picture. This method requires page access_token.

Specified by:
getPagePictureURL in interface PageMethods
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers - Connections - picture

getPagePictureURL

public java.net.URL getPagePictureURL(PictureSize size)
                               throws FacebookException
Description copied from interface: PageMethods
Returns the url of a page's profile picture. This method requires page access_token.

Specified by:
getPagePictureURL in interface PageMethods
Parameters:
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers - Connections - picture

getPagePictureURL

public java.net.URL getPagePictureURL(java.lang.String pageId)
                               throws FacebookException
Description copied from interface: PageMethods
Returns the url of a page's profile picture.

Specified by:
getPagePictureURL in interface PageMethods
Parameters:
pageId - the ID of a page
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers - Connections - picture

getPagePictureURL

public java.net.URL getPagePictureURL(java.lang.String pageId,
                                      PictureSize size)
                               throws FacebookException
Description copied from interface: PageMethods
Returns the url of a page's profile picture.

Specified by:
getPagePictureURL in interface PageMethods
Parameters:
pageId - the ID of a page
size - picture size
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers - Connections - picture

getPromotablePosts

public ResponseList<Post> getPromotablePosts()
                                      throws FacebookException
Description copied from interface: PageMethods
Returns the current Page's own posts, including unpublished and scheduled posts. This method requires page access_token.

Specified by:
getPromotablePosts in interface PageMethods
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPromotablePosts

public ResponseList<Post> getPromotablePosts(Reading reading)
                                      throws FacebookException
Description copied from interface: PageMethods
Returns the current Page's own posts, including unpublished and scheduled posts. This method requires page access_token.

Specified by:
getPromotablePosts in interface PageMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPromotablePosts

public ResponseList<Post> getPromotablePosts(java.lang.String pageId)
                                      throws FacebookException
Description copied from interface: PageMethods
Returns the Page's own posts, including unpublished and scheduled posts.

Specified by:
getPromotablePosts in interface PageMethods
Parameters:
pageId - the ID of the page
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPromotablePosts

public ResponseList<Post> getPromotablePosts(java.lang.String pageId,
                                             Reading reading)
                                      throws FacebookException
Description copied from interface: PageMethods
Returns the Page's own posts, including unpublished and scheduled posts.

Specified by:
getPromotablePosts in interface PageMethods
Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

updatePageBasicAttributes

public boolean updatePageBasicAttributes(PageUpdate pageUpdate)
                                  throws FacebookException
Description copied from interface: PageMethods
Updates a Page's basic attributes.

Specified by:
updatePageBasicAttributes in interface PageMethods
Parameters:
pageUpdate - the page to be updated
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers

updatePageBasicAttributes

public boolean updatePageBasicAttributes(java.lang.String pageId,
                                         PageUpdate pageUpdate)
                                  throws FacebookException
Description copied from interface: PageMethods
Updates a Page's basic attributes.

Specified by:
updatePageBasicAttributes in interface PageMethods
Parameters:
pageId - the ID of the page
pageUpdate - the page to be updated
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers

updatePageProfilePhoto

public boolean updatePageProfilePhoto(java.net.URL picture)
                               throws FacebookException
Description copied from interface: PageMethods
Updates the profile photo for the current Page.

Specified by:
updatePageProfilePhoto in interface PageMethods
Parameters:
picture - A URL to the photo
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Page Profile Photo

updatePageProfilePhoto

public boolean updatePageProfilePhoto(java.lang.String pageId,
                                      java.net.URL picture)
                               throws FacebookException
Description copied from interface: PageMethods
Updates the profile photo for a Page.

Specified by:
updatePageProfilePhoto in interface PageMethods
Parameters:
pageId - the ID of the page
picture - A URL to the photo
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Page Profile Photo

updatePageProfilePhoto

public boolean updatePageProfilePhoto(Media source)
                               throws FacebookException
Description copied from interface: PageMethods
Updates the profile photo for the current Page.

Specified by:
updatePageProfilePhoto in interface PageMethods
Parameters:
source - Photo content
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Page Profile Photo

updatePageProfilePhoto

public boolean updatePageProfilePhoto(java.lang.String pageId,
                                      Media source)
                               throws FacebookException
Description copied from interface: PageMethods
Updates the profile photo for a Page.

Specified by:
updatePageProfilePhoto in interface PageMethods
Parameters:
pageId - the ID of the page
source - Photo content
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Page Profile Photo

updatePageCoverPhoto

public boolean updatePageCoverPhoto(PageCoverUpdate pageCoverUpdate)
                             throws FacebookException
Description copied from interface: PageMethods
Updates the profile photo for the current page.

Specified by:
updatePageCoverPhoto in interface PageMethods
Parameters:
pageCoverUpdate - the cover photo for the page to be updated
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Cover Photo

updatePageCoverPhoto

public boolean updatePageCoverPhoto(java.lang.String pageId,
                                    PageCoverUpdate pageCoverUpdate)
                             throws FacebookException
Description copied from interface: PageMethods
Updates the profile photo for the current page.

Specified by:
updatePageCoverPhoto in interface PageMethods
Parameters:
pageId - the ID of the page
pageCoverUpdate - the cover photo for the page to be updated
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#attributes - Facebook Developers - Setting a Cover Photo

getPageSettings

public ResponseList<PageSetting> getPageSettings()
                                          throws FacebookException
Description copied from interface: PageMethods
Returns the settings for the current page.

Specified by:
getPageSettings in interface PageMethods
Returns:
settings
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPageSettings

public ResponseList<PageSetting> getPageSettings(java.lang.String pageId)
                                          throws FacebookException
Description copied from interface: PageMethods
Returns the settings for the page.

Specified by:
getPageSettings in interface PageMethods
Parameters:
pageId - the ID of the page
Returns:
settings
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

updatePageSetting

public boolean updatePageSetting(PageSettingUpdate pageSettingUpdate)
                          throws FacebookException
Description copied from interface: PageMethods
Updates the setting for the current page.

Specified by:
updatePageSetting in interface PageMethods
Parameters:
pageSettingUpdate - setting
Returns:
true if the setting was successfully set or changed
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#settings - Facebook Developers

updatePageSetting

public boolean updatePageSetting(java.lang.String pageId,
                                 PageSettingUpdate pageSettingUpdate)
                          throws FacebookException
Description copied from interface: PageMethods
Updates the setting for the page.

Specified by:
updatePageSetting in interface PageMethods
Parameters:
pageId - the ID of the page
pageSettingUpdate - setting
Returns:
true if the setting was successfully set or changed
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#settings - Facebook Developers

postBackdatingFeed

public java.lang.String postBackdatingFeed(BackdatingPostUpdate backdatingPostUpdate)
                                    throws FacebookException
Description copied from interface: PageMethods
Creates the post that's back-dated to the current page's wall.

Specified by:
postBackdatingFeed in interface PageMethods
Parameters:
backdatingPostUpdate - the post to be created
Returns:
The new post ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#backdating - Facebook Developers

postBackdatingFeed

public java.lang.String postBackdatingFeed(java.lang.String pageId,
                                           BackdatingPostUpdate backdatingPostUpdate)
                                    throws FacebookException
Description copied from interface: PageMethods
Creates the post that's back-dated to a page's wall.

Specified by:
postBackdatingFeed in interface PageMethods
Parameters:
pageId - the ID of a page
backdatingPostUpdate - the post to be created
Returns:
The new post ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#backdating - Facebook Developers

postPagePhoto

public java.lang.String postPagePhoto(PagePhotoUpdate pagePhotoUpdate)
                               throws FacebookException
Description copied from interface: PageMethods
Posts a photo to the current page's wall.

Specified by:
postPagePhoto in interface PageMethods
Parameters:
pagePhotoUpdate - photo content, targeting and more
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#photos - Facebook Developers

postPagePhoto

public java.lang.String postPagePhoto(java.lang.String pageId,
                                      PagePhotoUpdate pagePhotoUpdate)
                               throws FacebookException
Description copied from interface: PageMethods
Posts a photo to a page's wall.

Specified by:
postPagePhoto in interface PageMethods
Parameters:
pageId - the ID of a page
pagePhotoUpdate - photo content, targeting and more
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#photos - Facebook Developers

getGlobalBrandChildren

public ResponseList<Page> getGlobalBrandChildren(java.lang.String pageId)
                                          throws FacebookException
Description copied from interface: PageMethods
Returns all children pages of a specific page.

Specified by:
getGlobalBrandChildren in interface PageMethods
Parameters:
pageId - the ID of the page
Returns:
pages
Throws:
FacebookException

getGlobalBrandChildren

public ResponseList<Page> getGlobalBrandChildren(java.lang.String pageId,
                                                 Reading reading)
                                          throws FacebookException
Description copied from interface: PageMethods
Returns all children pages of a specific page.

Specified by:
getGlobalBrandChildren in interface PageMethods
Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
pages
Throws:
FacebookException

getPageInsights

public ResponseList<Insight> getPageInsights(java.lang.String pageId)
                                      throws FacebookException
Description copied from interface: PageMethods
Returns the page's insights data.

Specified by:
getPageInsights in interface PageMethods
Parameters:
pageId - the ID of the page
Returns:
insights
Throws:
FacebookException

getPageInsights

public ResponseList<Insight> getPageInsights(java.lang.String pageId,
                                             Reading reading)
                                      throws FacebookException
Description copied from interface: PageMethods
Returns the page's insights data.

Specified by:
getPageInsights in interface PageMethods
Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
pages
Throws:
FacebookException

getPageTagged

public ResponseList<Tagged> getPageTagged(java.lang.String pageId)
                                   throws FacebookException
Description copied from interface: PageMethods
Returns the photos, videos, and posts in which the Page has been tagged.

Specified by:
getPageTagged in interface PageMethods
Parameters:
pageId - the ID of the page
Returns:
pages
Throws:
FacebookException

getPageTagged

public ResponseList<Tagged> getPageTagged(java.lang.String pageId,
                                          Reading reading)
                                   throws FacebookException
Description copied from interface: PageMethods
Returns the photos, videos, and posts in which the Page has been tagged.

Specified by:
getPageTagged in interface PageMethods
Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
pages
Throws:
FacebookException

getMilestones

public ResponseList<Milestone> getMilestones()
                                      throws FacebookException
Description copied from interface: PageMethods
Returns a list of the Page's milestones. Note that this method requires 'page' access_token.

Specified by:
getMilestones in interface PageMethods
Returns:
milestones
Throws:
FacebookException - when Facebook service or network is unavailable

getMilestones

public ResponseList<Milestone> getMilestones(Reading reading)
                                      throws FacebookException
Description copied from interface: PageMethods
/** Returns a list of the Page's milestones. Note that this method requires 'page' access_token.

Specified by:
getMilestones in interface PageMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
milestones
Throws:
FacebookException - when Facebook service or network is unavailable

getMilestones

public ResponseList<Milestone> getMilestones(java.lang.String pageId)
                                      throws FacebookException
Description copied from interface: PageMethods
Returns a list of the Page's milestones.

Specified by:
getMilestones in interface PageMethods
Parameters:
pageId - the ID of the page
Returns:
milestones
Throws:
FacebookException - when Facebook service or network is unavailable

getMilestones

public ResponseList<Milestone> getMilestones(java.lang.String pageId,
                                             Reading reading)
                                      throws FacebookException
Description copied from interface: PageMethods
Returns a list of the Page's milestones.

Specified by:
getMilestones in interface PageMethods
Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
milestones
Throws:
FacebookException - when Facebook service or network is unavailable

createMilestone

public java.lang.String createMilestone(MilestoneUpdate milestoneUpdate)
                                 throws FacebookException
Description copied from interface: PageMethods
Creates the milestone for the current page. Note that this method requires 'page' access_token.

Specified by:
createMilestone in interface PageMethods
Parameters:
milestoneUpdate - a milestone to be created
Returns:
The new milestone ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#milestones - Facebook Developers

createMilestone

public java.lang.String createMilestone(java.lang.String pageId,
                                        MilestoneUpdate milestoneUpdate)
                                 throws FacebookException
Description copied from interface: PageMethods
Creates the milestone for the page. Note that this method requires 'page' access_token.

Specified by:
createMilestone in interface PageMethods
Parameters:
pageId - the ID of the page
milestoneUpdate - a milestone to be created
Returns:
The new milestone ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#milestones - Facebook Developers

deleteMilestone

public boolean deleteMilestone(java.lang.String milestoneId)
                        throws FacebookException
Description copied from interface: PageMethods
Deletes the milestone. Note that this method requires 'page' access_token.

Specified by:
deleteMilestone in interface PageMethods
Parameters:
milestoneId - the ID of a milestone
Returns:
true if delete is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#milestones - Facebook Developers

getPageAdmins

public ResponseList<Admin> getPageAdmins()
                                  throws FacebookException
Description copied from interface: PageMethods
Returns a list of the Page's Admins. Note that this method requires 'page' access_token.

Specified by:
getPageAdmins in interface PageMethods
Returns:
admins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPageAdmins

public ResponseList<Admin> getPageAdmins(Reading reading)
                                  throws FacebookException
Description copied from interface: PageMethods
Returns a list of the Page's Admins. Note that this method requires 'page' access_token.

Specified by:
getPageAdmins in interface PageMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
admins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPageAdmins

public ResponseList<Admin> getPageAdmins(java.lang.String pageId)
                                  throws FacebookException
Description copied from interface: PageMethods
Returns a list of the Page's Admins. Note that this method requires 'page' access_token.

Specified by:
getPageAdmins in interface PageMethods
Parameters:
pageId - the ID of the page
Returns:
admins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getPageAdmins

public ResponseList<Admin> getPageAdmins(java.lang.String pageId,
                                         Reading reading)
                                  throws FacebookException
Description copied from interface: PageMethods
Returns a list of the Page's Admins. Note that this method requires 'page' access_token.

Specified by:
getPageAdmins in interface PageMethods
Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
admins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page - Facebook Developers

getTabs

public ResponseList<Tab> getTabs()
                          throws FacebookException
Description copied from interface: PageMethods
Returns the current Page's profile tabs. Note that this method requires 'page' access_token.

Specified by:
getTabs in interface PageMethods
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getTabs

public ResponseList<Tab> getTabs(Reading reading)
                          throws FacebookException
Description copied from interface: PageMethods
Returns the current Page's profile tabs. Note that this method requires 'page' access_token.

Specified by:
getTabs in interface PageMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getTabs

public ResponseList<Tab> getTabs(java.lang.String pageId)
                          throws FacebookException
Description copied from interface: PageMethods
Returns the Page's profile tabs. Note that this method requires 'page' access_token.

Specified by:
getTabs in interface PageMethods
Parameters:
pageId - the ID of the page
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getTabs

public ResponseList<Tab> getTabs(java.lang.String pageId,
                                 Reading reading)
                          throws FacebookException
Description copied from interface: PageMethods
Returns the Page's profile tabs. Note that this method requires 'page' access_token.

Specified by:
getTabs in interface PageMethods
Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getInstalledTabs

public ResponseList<Tab> getInstalledTabs(java.util.List<java.lang.String> appIds)
                                   throws FacebookException
Description copied from interface: PageMethods
Returns the current Page's profile tabs if a specific app is installed.

Specified by:
getInstalledTabs in interface PageMethods
Parameters:
appIds - the IDs of app
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getInstalledTabs

public ResponseList<Tab> getInstalledTabs(java.util.List<java.lang.String> appIds,
                                          Reading reading)
                                   throws FacebookException
Description copied from interface: PageMethods
Returns the current Page's profile tabs if a specific app is installed.

Specified by:
getInstalledTabs in interface PageMethods
Parameters:
appIds - the IDs of app
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getInstalledTabs

public ResponseList<Tab> getInstalledTabs(java.lang.String pageId,
                                          java.util.List<java.lang.String> appIds)
                                   throws FacebookException
Description copied from interface: PageMethods
Returns the Page's profile tabs if a specific app is installed.

Specified by:
getInstalledTabs in interface PageMethods
Parameters:
pageId - the ID of the page
appIds - the IDs of app
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

getInstalledTabs

public ResponseList<Tab> getInstalledTabs(java.lang.String pageId,
                                          java.util.List<java.lang.String> appIds,
                                          Reading reading)
                                   throws FacebookException
Description copied from interface: PageMethods
Returns the Page's profile tabs if a specific app is installed.

Specified by:
getInstalledTabs in interface PageMethods
Parameters:
pageId - the ID of the page
appIds - the IDs of app
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
tabs
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#tabs - Facebook Developers

installTab

public boolean installTab(java.lang.String appId)
                   throws FacebookException
Description copied from interface: PageMethods
Installs a profile_tab at the end of the current list of installed tabs for the current page.

Specified by:
installTab in interface PageMethods
Parameters:
appId - the ID of the application for which to install the tab
Returns:
true if install is successful
Throws:
FacebookException
See Also:
Page#tabs - Facebook Developers

installTab

public boolean installTab(java.lang.String pageId,
                          java.lang.String appId)
                   throws FacebookException
Description copied from interface: PageMethods
Installs a profile_tab at the end of the current list of installed tabs for the current page.

Specified by:
installTab in interface PageMethods
Parameters:
pageId - the ID of the page
appId - the ID of the application for which to install the tab
Returns:
true if install is successful
Throws:
FacebookException
See Also:
Page#tabs - Facebook Developers

updateTab

public boolean updateTab(java.lang.String tabId,
                         TabUpdate tabUpdate)
                  throws FacebookException
Description copied from interface: PageMethods
Updates an installed profile_tab for the current page.

Specified by:
updateTab in interface PageMethods
Parameters:
tabId - the ID of the tab
tabUpdate - tab to be updated
Returns:
true if the update is successful
Throws:
FacebookException
See Also:
Page#tabs - Facebook Developers

updateTab

public boolean updateTab(java.lang.String pageId,
                         java.lang.String tabId,
                         TabUpdate tabUpdate)
                  throws FacebookException
Description copied from interface: PageMethods
Updates an installed profile_tab for the page.

Specified by:
updateTab in interface PageMethods
Parameters:
pageId - the ID of the page
tabId - the ID of the tab
tabUpdate - tab to be updated
Returns:
true if the update is successful
Throws:
FacebookException
See Also:
Page#tabs - Facebook Developers

deleteTab

public boolean deleteTab(java.lang.String tabId)
                  throws FacebookException
Description copied from interface: PageMethods
Deletes an installed profile_tab where is_permanent is not true for the current page.

Specified by:
deleteTab in interface PageMethods
Parameters:
tabId - the ID of the tab
Returns:
true if the delete is successful
Throws:
FacebookException

deleteTab

public boolean deleteTab(java.lang.String pageId,
                         java.lang.String tabId)
                  throws FacebookException
Description copied from interface: PageMethods
Deletes an installed profile_tab where is_permanent is not true for the page.

Specified by:
deleteTab in interface PageMethods
Parameters:
pageId - the ID of the page
tabId - the ID of the tab
Returns:
true if the delete is successful
Throws:
FacebookException

displayPagePost

public boolean displayPagePost(java.lang.String postId,
                               boolean isHidden)
                        throws FacebookException
Description copied from interface: PageMethods
Hides/Shows the page's post that is published by a non-admin user.

Specified by:
displayPagePost in interface PageMethods
Parameters:
postId - the ID of the post in the page
isHidden - whether a post is hidden
Returns:
true if hide/show is successful
Throws:
FacebookException
See Also:
Page#attributes - Facebook Developers - Hiding a Page Post

getBlocked

public ResponseList<User> getBlocked()
                              throws FacebookException
Description copied from interface: PageMethods
Returns a list of users blocked from the current Page.

Specified by:
getBlocked in interface PageMethods
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

getBlocked

public ResponseList<User> getBlocked(Reading reading)
                              throws FacebookException
Description copied from interface: PageMethods
Returns a list of users blocked from the current Page.

Specified by:
getBlocked in interface PageMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

getBlocked

public ResponseList<User> getBlocked(java.lang.String pageId)
                              throws FacebookException
Description copied from interface: PageMethods
Returns a list of users blocked from the Page.

Specified by:
getBlocked in interface PageMethods
Parameters:
pageId - the ID of the page
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

getBlocked

public ResponseList<User> getBlocked(java.lang.String pageId,
                                     Reading reading)
                              throws FacebookException
Description copied from interface: PageMethods
Returns a list of users blocked from the Page.

Specified by:
getBlocked in interface PageMethods
Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

block

public java.util.Map<java.lang.String,java.lang.Boolean> block(java.util.List<java.lang.String> userIds)
                                                        throws FacebookException
Description copied from interface: PageMethods
Blocks users from posting content to the current page.

Specified by:
block in interface PageMethods
Parameters:
userIds - user IDs you wish to block
Returns:
Map where the keys are the user IDs and the values a boolean of whether or not the block was successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

block

public java.util.Map<java.lang.String,java.lang.Boolean> block(java.lang.String pageId,
                                                               java.util.List<java.lang.String> userIds)
                                                        throws FacebookException
Description copied from interface: PageMethods
Blocks users from posting content to the current page.

Specified by:
block in interface PageMethods
Parameters:
pageId - the ID of the page
userIds - user IDs you wish to block
Returns:
Map where the keys are the user IDs and the values a boolean of whether or not the block was successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

unblock

public boolean unblock(java.lang.String userId)
                throws FacebookException
Description copied from interface: PageMethods
Unblocks the blocked user for the current page.

Specified by:
unblock in interface PageMethods
Parameters:
userId - the IDs of the user
Returns:
true if unblock is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

unblock

public boolean unblock(java.lang.String pageId,
                       java.lang.String userId)
                throws FacebookException
Description copied from interface: PageMethods
Unblocks the blocked user for the page.

Specified by:
unblock in interface PageMethods
Parameters:
pageId - the ID of the page
userId - the IDs of the user
Returns:
true if unblock is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#blocked - Facebook Developers

getOffers

public ResponseList<Offer> getOffers()
                              throws FacebookException
Description copied from interface: PageMethods
Returns a list of offers of the current page.

Specified by:
getOffers in interface PageMethods
Returns:
offers
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

getOffers

public ResponseList<Offer> getOffers(Reading reading)
                              throws FacebookException
Description copied from interface: PageMethods
Returns a list of offers of the current page.

Specified by:
getOffers in interface PageMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
offers
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

getOffers

public ResponseList<Offer> getOffers(java.lang.String pageId)
                              throws FacebookException
Description copied from interface: PageMethods
Returns a list of offers of the current page.

Specified by:
getOffers in interface PageMethods
Parameters:
pageId - the ID of the page
Returns:
offers
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

getOffers

public ResponseList<Offer> getOffers(java.lang.String pageId,
                                     Reading reading)
                              throws FacebookException
Description copied from interface: PageMethods
Returns a list of offers of the current page.

Specified by:
getOffers in interface PageMethods
Parameters:
pageId - the ID of the page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
offers
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

createOffer

public java.lang.String createOffer(OfferUpdate offerUpdate)
                             throws FacebookException
Description copied from interface: PageMethods
Creates an offer for the current page.

Specified by:
createOffer in interface PageMethods
Parameters:
offerUpdate - a createOffer to be created
Returns:
The new createOffer ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

createOffer

public java.lang.String createOffer(java.lang.String pageId,
                                    OfferUpdate offerUpdate)
                             throws FacebookException
Description copied from interface: PageMethods
Creates an offers for the page.

Specified by:
createOffer in interface PageMethods
Parameters:
pageId - the ID of the page
offerUpdate - a createOffer to be created
Returns:
The new createOffer ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Page#offers - Facebook Developers

deleteOffer

public boolean deleteOffer(java.lang.String offerId)
                    throws FacebookException
Description copied from interface: PageMethods
Deletes the createOffer.

Specified by:
deleteOffer in interface PageMethods
Parameters:
offerId - the ID of the createOffer
Returns:
true if delete is successful
Throws:
FacebookException

getOffer

public Offer getOffer(java.lang.String offerId)
               throws FacebookException
Description copied from interface: PageMethods
Returns the offer.

Specified by:
getOffer in interface PageMethods
Parameters:
offerId - the ID of the offer
Returns:
offer
Throws:
FacebookException - when Facebook service or network is unavailable

getLikedPage

public Page getLikedPage(java.lang.String pageId)
                  throws FacebookException
Description copied from interface: PageMethods
Returns a specific page that the current user has liked.

Specified by:
getLikedPage in interface PageMethods
Parameters:
pageId - the ID of a page
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getLikedPage

public Page getLikedPage(java.lang.String pageId,
                         Reading reading)
                  throws FacebookException
Description copied from interface: PageMethods
Returns a specific page that the current user has liked.

Specified by:
getLikedPage in interface PageMethods
Parameters:
pageId - the ID of a page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getLikedPage

public Page getLikedPage(java.lang.String userId,
                         java.lang.String pageId)
                  throws FacebookException
Description copied from interface: PageMethods
Returns a specific page that a user has liked.

Specified by:
getLikedPage in interface PageMethods
Parameters:
userId - the ID of a user
pageId - the ID of a page
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getLikedPage

public Page getLikedPage(java.lang.String userId,
                         java.lang.String pageId,
                         Reading reading)
                  throws FacebookException
Description copied from interface: PageMethods
Returns a specific page that a user has liked.

Specified by:
getLikedPage in interface PageMethods
Parameters:
userId - the ID of a user
pageId - the ID of a page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
page
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#likes - Facebook Developers

getPermissions

public java.util.List<Permission> getPermissions()
                                          throws FacebookException
Description copied from interface: PermissionMethods
Returns the permissions granted the current user to the current application.

Specified by:
getPermissions in interface PermissionMethods
Returns:
permission names
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

getPermissions

public java.util.List<Permission> getPermissions(java.lang.String userId)
                                          throws FacebookException
Description copied from interface: PermissionMethods
Returns the permissions granted a user to the current application.

Specified by:
getPermissions in interface PermissionMethods
Parameters:
userId - the ID of a user
Returns:
permission names
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

revokePermission

public boolean revokePermission(java.lang.String permissionName)
                         throws FacebookException
Description copied from interface: PermissionMethods
Revokes a specific permission from the current application.

Specified by:
revokePermission in interface PermissionMethods
Parameters:
permissionName - permission name
Returns:
true if revoke is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

revokePermission

public boolean revokePermission(java.lang.String userId,
                                java.lang.String permissionName)
                         throws FacebookException
Description copied from interface: PermissionMethods
Revokes a specific permission from the current application.

Specified by:
revokePermission in interface PermissionMethods
Parameters:
userId - the ID of a user
permissionName - permission name
Returns:
true if revoke is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#permissions - Facebook Developers

getPhotos

public ResponseList<Photo> getPhotos()
                              throws FacebookException
Description copied from interface: PhotoMethods
Returns the photos the current user/page is tagged in.

Specified by:
getPhotos in interface PhotoMethods
Returns:
photos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#photos - Facebook Developers, Page#photos - Facebook Developers

getPhotos

public ResponseList<Photo> getPhotos(Reading reading)
                              throws FacebookException
Description copied from interface: PhotoMethods
Returns the photos the current user/page is tagged in.

Specified by:
getPhotos in interface PhotoMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
photos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#photos - Facebook Developers, Page#photos - Facebook Developers

getPhotos

public ResponseList<Photo> getPhotos(java.lang.String id)
                              throws FacebookException
Description copied from interface: PhotoMethods
Returns the photos a user is tagged in / uploaded to a page / published to an event.

Specified by:
getPhotos in interface PhotoMethods
Parameters:
id - the ID of a user/page/event
Returns:
photos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#photos - Facebook Developers, Page#photos - Facebook Developers, Event#photos - Facebook Developers

getPhotos

public ResponseList<Photo> getPhotos(java.lang.String id,
                                     Reading reading)
                              throws FacebookException
Description copied from interface: PhotoMethods
Returns the photos a user is tagged in / uploaded to a page / published to an event.

Specified by:
getPhotos in interface PhotoMethods
Parameters:
id - the ID of a user/page/event
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
photos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#photos - Facebook Developers, Page#photos - Facebook Developers, Event#photos - Facebook Developers

getPhoto

public Photo getPhoto(java.lang.String photoId)
               throws FacebookException
Description copied from interface: PhotoMethods
Returns a single photo.

Specified by:
getPhoto in interface PhotoMethods
Parameters:
photoId - the ID of the photo
Returns:
photo
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo - Facebook Developers

getPhoto

public Photo getPhoto(java.lang.String photoId,
                      Reading reading)
               throws FacebookException
Description copied from interface: PhotoMethods
Returns a single photo.

Specified by:
getPhoto in interface PhotoMethods
Parameters:
photoId - the ID of the photo
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
photo
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo - Facebook Developers

getPhotoComments

public ResponseList<Comment> getPhotoComments(java.lang.String photoId)
                                       throws FacebookException
Description copied from interface: PhotoMethods
Returns the comments made on a photo.

Specified by:
getPhotoComments in interface PhotoMethods
Parameters:
photoId - the ID of a photo
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#comments - Facebook Developers

getPhotoComments

public ResponseList<Comment> getPhotoComments(java.lang.String photoId,
                                              Reading reading)
                                       throws FacebookException
Description copied from interface: PhotoMethods
Returns the comments made on a photo.

Specified by:
getPhotoComments in interface PhotoMethods
Parameters:
photoId - the ID of a photo
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#comments - Facebook Developers

commentPhoto

public java.lang.String commentPhoto(java.lang.String photoId,
                                     java.lang.String message)
                              throws FacebookException
Description copied from interface: PhotoMethods
Comments on the photo.

Specified by:
commentPhoto in interface PhotoMethods
Parameters:
photoId - the ID of the photo
message - comment text
Returns:
The new comment ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#comments - Facebook Developers

getPhotoLikes

public ResponseList<Like> getPhotoLikes(java.lang.String photoId)
                                 throws FacebookException
Description copied from interface: PhotoMethods
Returns the likes made on a photo.

Specified by:
getPhotoLikes in interface PhotoMethods
Parameters:
photoId - the ID of a photo
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#likes - Facebook Developers

getPhotoLikes

public ResponseList<Like> getPhotoLikes(java.lang.String photoId,
                                        Reading reading)
                                 throws FacebookException
Description copied from interface: PhotoMethods
Returns the likes made on a photo.

Specified by:
getPhotoLikes in interface PhotoMethods
Parameters:
photoId - the ID of a photo
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
likes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#likes - Facebook Developers

likePhoto

public boolean likePhoto(java.lang.String photoId)
                  throws FacebookException
Description copied from interface: PhotoMethods
Likes the photo.

Specified by:
likePhoto in interface PhotoMethods
Parameters:
photoId - the ID of the photo
Returns:
true if like is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#likes - Facebook Developers

unlikePhoto

public boolean unlikePhoto(java.lang.String photoId)
                    throws FacebookException
Description copied from interface: PhotoMethods
Unlikes the photo.

Specified by:
unlikePhoto in interface PhotoMethods
Parameters:
photoId - the ID of the photo
Returns:
true if unlike is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#likes - Facebook Developers

getPhotoURL

public java.net.URL getPhotoURL(java.lang.String photoId)
                         throws FacebookException
Description copied from interface: PhotoMethods
Returns url of a photo.

Specified by:
getPhotoURL in interface PhotoMethods
Parameters:
photoId - the ID of a photo
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo - Facebook Developers - Connections - picture

getTagsOnPhoto

public ResponseList<Tag> getTagsOnPhoto(java.lang.String photoId)
                                 throws FacebookException
Description copied from interface: PhotoMethods
Returns the Users tagged in a photo.

Specified by:
getTagsOnPhoto in interface PhotoMethods
Parameters:
photoId - the ID of a photo
Returns:
tags
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo - Facebook Developers - Connections - tags

getTagsOnPhoto

public ResponseList<Tag> getTagsOnPhoto(java.lang.String photoId,
                                        Reading reading)
                                 throws FacebookException
Description copied from interface: PhotoMethods
Returns the Users tagged in a photo.

Specified by:
getTagsOnPhoto in interface PhotoMethods
Parameters:
photoId - the ID of a photo
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
tags
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo - Facebook Developers - Connections - tags

addTagToPhoto

public boolean addTagToPhoto(java.lang.String photoId,
                             java.lang.String toUserId)
                      throws FacebookException
Description copied from interface: PhotoMethods
Adds the tag to a photo.

Specified by:
addTagToPhoto in interface PhotoMethods
Parameters:
photoId - the ID of a photo
toUserId - the ID of the user to tag
Returns:
true if add is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#tags - Facebook Developers - Connections - tags

addTagToPhoto

public boolean addTagToPhoto(java.lang.String photoId,
                             TagUpdate tagUpdate)
                      throws FacebookException
Description copied from interface: PhotoMethods
Adds the tag to a photo.

Specified by:
addTagToPhoto in interface PhotoMethods
Parameters:
photoId - the ID of a photo
tagUpdate - tag information
Returns:
true if add is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#tags - Facebook Developers - Connections - tags

addTagToPhoto

public boolean addTagToPhoto(java.lang.String photoId,
                             java.util.List<java.lang.String> toUserIds)
                      throws FacebookException
Description copied from interface: PhotoMethods
Adds the tag to a photo.

Specified by:
addTagToPhoto in interface PhotoMethods
Parameters:
photoId - the ID of a photo
toUserIds - the IDs of the users to tag
Returns:
true if add is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#tags - Facebook Developers - Connections - tags

updateTagOnPhoto

public boolean updateTagOnPhoto(java.lang.String photoId,
                                TagUpdate tagUpdate)
                         throws FacebookException
Description copied from interface: PhotoMethods
Updates the position of the tag on a photo.

Specified by:
updateTagOnPhoto in interface PhotoMethods
Parameters:
photoId - the ID of a photo
tagUpdate - tag information, supports 'to', 'x', 'y'
Returns:
true if update is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#tags - Facebook Developers - Connections - tags

deleteTagOnPhoto

public boolean deleteTagOnPhoto(java.lang.String photoId,
                                java.lang.String toUserId)
                         throws FacebookException
Description copied from interface: PhotoMethods
Deletes a tag for a particular user in the photo.

Specified by:
deleteTagOnPhoto in interface PhotoMethods
Parameters:
photoId - the ID of a photo
toUserId - the ID of the user to tag
Returns:
true if delete is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Photo#tags - Facebook Developers - Connections - tags

postPhoto

public java.lang.String postPhoto(Media source)
                           throws FacebookException
Description copied from interface: PhotoMethods
Posts a photo to the current user's wall.

Specified by:
postPhoto in interface PhotoMethods
Parameters:
source - photo content
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#photos - Facebook Developers

postPhoto

public java.lang.String postPhoto(PhotoUpdate photoUpdate)
                           throws FacebookException
Description copied from interface: PhotoMethods
Posts a photo to the current user's wall.

Specified by:
postPhoto in interface PhotoMethods
Parameters:
photoUpdate - the photo to be created
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#photos - Facebook Developers

postPhoto

public java.lang.String postPhoto(java.lang.String userId,
                                  Media source)
                           throws FacebookException
Description copied from interface: PhotoMethods
Posts the photo to a user's wall.

Specified by:
postPhoto in interface PhotoMethods
Parameters:
userId - the ID of a user
source - photo content
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#photos - Facebook Developers

postPhoto

public java.lang.String postPhoto(java.lang.String userId,
                                  PhotoUpdate photoUpdate)
                           throws FacebookException
Description copied from interface: PhotoMethods
Posts the photo to a user's wall.

Specified by:
postPhoto in interface PhotoMethods
Parameters:
userId - the ID of a user
photoUpdate - the photo to be created
Returns:
The new photo ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#photos - Facebook Developers

deletePhoto

public boolean deletePhoto(java.lang.String photoId)
                    throws FacebookException
Description copied from interface: PhotoMethods
Deletes the photo.

Specified by:
deletePhoto in interface PhotoMethods
Parameters:
photoId - the ID of the photo
Returns:
true if delete is successful
Throws:
FacebookException - when Facebook service or network is unavailable

getPokes

public ResponseList<Poke> getPokes()
                            throws FacebookException
Description copied from interface: PokeMethods
Returns the current user's pokes.

Specified by:
getPokes in interface PokeMethods
Returns:
pokes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - pokes

getPokes

public ResponseList<Poke> getPokes(Reading reading)
                            throws FacebookException
Description copied from interface: PokeMethods
Returns the current user's pokes.

Specified by:
getPokes in interface PokeMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
pokes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - pokes

getPokes

public ResponseList<Poke> getPokes(java.lang.String userId)
                            throws FacebookException
Description copied from interface: PokeMethods
Returns a user's pokes.

Specified by:
getPokes in interface PokeMethods
Parameters:
userId - the ID of a user
Returns:
pokes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - pokes

getPokes

public ResponseList<Poke> getPokes(java.lang.String userId,
                                   Reading reading)
                            throws FacebookException
Description copied from interface: PokeMethods
Returns a user's pokes.

Specified by:
getPokes in interface PokeMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
pokes
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User - Facebook Developers - Connections - pokes

getQuestions

public ResponseList<Question> getQuestions()
                                    throws FacebookException
Description copied from interface: QuestionMethods
Returns the current user's/page's questions.

Specified by:
getQuestions in interface QuestionMethods
Returns:
questions
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#questions - Facebook Developers

getQuestions

public ResponseList<Question> getQuestions(Reading reading)
                                    throws FacebookException
Description copied from interface: QuestionMethods
Returns the current user's/page's questions.

Specified by:
getQuestions in interface QuestionMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
questions
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#questions - Facebook Developers

getQuestions

public ResponseList<Question> getQuestions(java.lang.String id)
                                    throws FacebookException
Description copied from interface: QuestionMethods
Returns a user's/page's questions.

Specified by:
getQuestions in interface QuestionMethods
Parameters:
id - the ID of a user/page
Returns:
questions
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#questions - Facebook Developers

getQuestions

public ResponseList<Question> getQuestions(java.lang.String id,
                                           Reading reading)
                                    throws FacebookException
Description copied from interface: QuestionMethods
Returns a user's/page's questions.

Specified by:
getQuestions in interface QuestionMethods
Parameters:
id - the ID of a user/page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
questions
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#questions - Facebook Developers

getQuestion

public Question getQuestion(java.lang.String questionId)
                     throws FacebookException
Description copied from interface: QuestionMethods
Returns a single question.

Specified by:
getQuestion in interface QuestionMethods
Parameters:
questionId - the ID of the question
Returns:
question
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Question - Facebook Developers

getQuestion

public Question getQuestion(java.lang.String questionId,
                            Reading reading)
                     throws FacebookException
Description copied from interface: QuestionMethods
Returns a single question.

Specified by:
getQuestion in interface QuestionMethods
Parameters:
questionId - the ID of the question
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
question
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Question - Facebook Developers

createQuestion

public java.lang.String createQuestion(QuestionUpdate questionUpdate)
                                throws FacebookException
Description copied from interface: QuestionMethods
Creates a current page's question.

Specified by:
createQuestion in interface QuestionMethods
Parameters:
questionUpdate - the question to be created
Returns:
The new question ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#questions - Facebook Developers

createQuestion

public java.lang.String createQuestion(java.lang.String id,
                                       QuestionUpdate questionUpdate)
                                throws FacebookException
Description copied from interface: QuestionMethods
Creates the question.

Specified by:
createQuestion in interface QuestionMethods
Parameters:
id - the ID of a page
questionUpdate - the question to be created
Returns:
The new question ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#questions - Facebook Developers

deleteQuestion

public boolean deleteQuestion(java.lang.String questionId)
                       throws FacebookException
Description copied from interface: QuestionMethods
Deletes the question.

Specified by:
deleteQuestion in interface QuestionMethods
Parameters:
questionId - the ID of the question
Returns:
true if delete is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#questions - Facebook Developers

getQuestionOptions

public ResponseList<Question.Option> getQuestionOptions(java.lang.String questionId)
                                                 throws FacebookException
Description copied from interface: QuestionMethods
Returns the options available as answers to the question.

Specified by:
getQuestionOptions in interface QuestionMethods
Parameters:
questionId - the ID of the question
Returns:
the options available as answers to the question
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Question#options - Facebook Developers

getQuestionOptions

public ResponseList<Question.Option> getQuestionOptions(java.lang.String questionId,
                                                        Reading reading)
                                                 throws FacebookException
Description copied from interface: QuestionMethods
Returns the options available as answers to the question.

Specified by:
getQuestionOptions in interface QuestionMethods
Parameters:
questionId - the ID of the question
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
the options available as answers to the question
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Question#options - Facebook Developers

addQuestionOption

public java.lang.String addQuestionOption(java.lang.String questionId,
                                          java.lang.String optionDescription)
                                   throws FacebookException
Description copied from interface: QuestionMethods
Adds the option to a question.

Specified by:
addQuestionOption in interface QuestionMethods
Parameters:
questionId - the ID of the question
optionDescription - description
Returns:
option ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Question#options - Facebook Developers

getQuestionOptionVotes

public ResponseList<QuestionVotes> getQuestionOptionVotes(java.lang.String questionId)
                                                   throws FacebookException
Description copied from interface: QuestionMethods
Returns the votes a particular option to a question has received.

Specified by:
getQuestionOptionVotes in interface QuestionMethods
Parameters:
questionId - the ID of the question
Returns:
option of users who have voted for this specific option
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
QuestionOption - Facebook Developers

getScores

public ResponseList<Score> getScores()
                              throws FacebookException
Description copied from interface: GameMethods
Returns the current scores for a user in games.

Specified by:
getScores in interface GameMethods
Returns:
scores
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#scores - Facebook Developers

getScores

public ResponseList<Score> getScores(Reading reading)
                              throws FacebookException
Description copied from interface: GameMethods
Returns the current scores for a user in games.

Specified by:
getScores in interface GameMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
scores
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#scores - Facebook Developers

getScores

public ResponseList<Score> getScores(java.lang.String userId)
                              throws FacebookException
Description copied from interface: GameMethods
Returns the current scores for the current user in games.

Specified by:
getScores in interface GameMethods
Parameters:
userId - the ID of the user
Returns:
scores
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#scores - Facebook Developers

getScores

public ResponseList<Score> getScores(java.lang.String userId,
                                     Reading reading)
                              throws FacebookException
Description copied from interface: GameMethods
Returns the current scores for the current user in games.

Specified by:
getScores in interface GameMethods
Parameters:
userId - the ID of the user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
scores
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#scores - Facebook Developers

postScore

public boolean postScore(int scoreValue)
                  throws FacebookException
Description copied from interface: GameMethods
Posts the score for the current user.

Specified by:
postScore in interface GameMethods
Parameters:
scoreValue - numeric score with value
Returns:
true if post is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#scores - Facebook Developers

postScore

public boolean postScore(java.lang.String userId,
                         int scoreValue)
                  throws FacebookException
Description copied from interface: GameMethods
Posts the score for a user.

Specified by:
postScore in interface GameMethods
Parameters:
userId - the ID of a user
scoreValue - numeric score with value
Returns:
true if post is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#scores - Facebook Developers

deleteScore

public boolean deleteScore()
                    throws FacebookException
Description copied from interface: GameMethods
Deletes the current score for the current user.

Specified by:
deleteScore in interface GameMethods
Returns:
true if delete is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#scores - Facebook Developers

deleteScore

public boolean deleteScore(java.lang.String userId)
                    throws FacebookException
Description copied from interface: GameMethods
Deletes the current score for a user.

Specified by:
deleteScore in interface GameMethods
Parameters:
userId - the ID of a user
Returns:
true if delete is succressful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#scores - Facebook Developers

getSubscribedto

public ResponseList<Subscribedto> getSubscribedto()
                                           throws FacebookException
Description copied from interface: SubscribeMethods
Returns people the current user is subscribed to.

Specified by:
getSubscribedto in interface SubscribeMethods
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#subscribedto - Facebook Developers

getSubscribedto

public ResponseList<Subscribedto> getSubscribedto(Reading reading)
                                           throws FacebookException
Description copied from interface: SubscribeMethods
Returns people the current user is subscribed to.

Specified by:
getSubscribedto in interface SubscribeMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#subscribedto - Facebook Developers

getSubscribedto

public ResponseList<Subscribedto> getSubscribedto(java.lang.String userId)
                                           throws FacebookException
Description copied from interface: SubscribeMethods
Returns people a user is subscribed to.

Specified by:
getSubscribedto in interface SubscribeMethods
Parameters:
userId - the ID of a user
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#subscribedto - Facebook Developers

getSubscribedto

public ResponseList<Subscribedto> getSubscribedto(java.lang.String userId,
                                                  Reading reading)
                                           throws FacebookException
Description copied from interface: SubscribeMethods
Returns people a user is subscribed to.

Specified by:
getSubscribedto in interface SubscribeMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#subscribedto - Facebook Developers

getSubscribers

public ResponseList<Subscriber> getSubscribers()
                                        throws FacebookException
Description copied from interface: SubscribeMethods
Returns the current user's subscribers.

Specified by:
getSubscribers in interface SubscribeMethods
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#subscribers - Facebook Developers

getSubscribers

public ResponseList<Subscriber> getSubscribers(Reading reading)
                                        throws FacebookException
Description copied from interface: SubscribeMethods
Returns the current user's subscribers.

Specified by:
getSubscribers in interface SubscribeMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#subscribers - Facebook Developers

getSubscribers

public ResponseList<Subscriber> getSubscribers(java.lang.String userId)
                                        throws FacebookException
Description copied from interface: SubscribeMethods
Returns a user's subscribers.

Specified by:
getSubscribers in interface SubscribeMethods
Parameters:
userId - the ID of a user
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#subscribers - Facebook Developers

getSubscribers

public ResponseList<Subscriber> getSubscribers(java.lang.String userId,
                                               Reading reading)
                                        throws FacebookException
Description copied from interface: SubscribeMethods
Returns a user's subscribers.

Specified by:
getSubscribers in interface SubscribeMethods
Parameters:
userId - the ID of a user
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#subscribers - Facebook Developers

getVideos

public ResponseList<Video> getVideos()
                              throws FacebookException
Description copied from interface: VideoMethods
Returns the videos the current user has been tagged in / the current page has uploaded.

Specified by:
getVideos in interface VideoMethods
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers, Page#videos - Facebook Developers

getVideos

public ResponseList<Video> getVideos(Reading reading)
                              throws FacebookException
Description copied from interface: VideoMethods
Returns the videos the current user has been tagged in / the current page has uploaded.

Specified by:
getVideos in interface VideoMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers, Page#videos - Facebook Developers

getVideos

public ResponseList<Video> getVideos(java.lang.String id)
                              throws FacebookException
Description copied from interface: VideoMethods
Returns the videos a user has been tagged in / the current page has uploaded.

Specified by:
getVideos in interface VideoMethods
Parameters:
id - the ID of a user/page
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers, Page#videos - Facebook Developers

getVideos

public ResponseList<Video> getVideos(java.lang.String id,
                                     Reading reading)
                              throws FacebookException
Description copied from interface: VideoMethods
Returns the videos a user has been tagged in / the current page has uploaded.

Specified by:
getVideos in interface VideoMethods
Parameters:
id - the ID of a user/page
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers, Page#videos - Facebook Developers

postVideo

public java.lang.String postVideo(VideoUpdate videoUpdate)
                           throws FacebookException
Description copied from interface: VideoMethods
Posts the video to the current user's/page's wall.

Specified by:
postVideo in interface VideoMethods
Parameters:
videoUpdate - video content
Returns:
The new video ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers

postVideo

public java.lang.String postVideo(java.lang.String id,
                                  VideoUpdate videoUpdate)
                           throws FacebookException
Description copied from interface: VideoMethods
Posts the video to a user's/page's wall.

Specified by:
postVideo in interface VideoMethods
Parameters:
id - the ID of a user
videoUpdate - video content
Returns:
The new video ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
User#videos - Facebook Developers

getVideo

public Video getVideo(java.lang.String videoId)
               throws FacebookException
Description copied from interface: VideoMethods
Returns a single video.

Specified by:
getVideo in interface VideoMethods
Parameters:
videoId - the ID of the video
Returns:
video
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video - Facebook Developers

getVideo

public Video getVideo(java.lang.String videoId,
                      Reading reading)
               throws FacebookException
Description copied from interface: VideoMethods
Returns a single video.

Specified by:
getVideo in interface VideoMethods
Parameters:
videoId - the ID of the video
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
video
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video - Facebook Developers

getVideoLikes

public ResponseList<Like> getVideoLikes(java.lang.String videoId)
                                 throws FacebookException
Description copied from interface: VideoMethods
Returns all of the likes on a video.

Specified by:
getVideoLikes in interface VideoMethods
Parameters:
videoId - the ID of a video
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#likes - Facebook Developers

getVideoLikes

public ResponseList<Like> getVideoLikes(java.lang.String videoId,
                                        Reading reading)
                                 throws FacebookException
Description copied from interface: VideoMethods
Returns all of the likes on a video.

Specified by:
getVideoLikes in interface VideoMethods
Parameters:
videoId - the ID of a video
reading - optional reading parameters. see Graph API#reading - Facebook Developers see Graph API#reading - Facebook Developers
Returns:
videos
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#likes - Facebook Developers

likeVideo

public boolean likeVideo(java.lang.String videoId)
                  throws FacebookException
Description copied from interface: VideoMethods
Likes the video.

Specified by:
likeVideo in interface VideoMethods
Parameters:
videoId - the ID of the video
Returns:
true if like is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#likes - Facebook Developers

unlikeVideo

public boolean unlikeVideo(java.lang.String videoId)
                    throws FacebookException
Description copied from interface: VideoMethods
Unlikes the video.

Specified by:
unlikeVideo in interface VideoMethods
Parameters:
videoId - the ID of the video
Returns:
true if unlike is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#likes - Facebook Developers

getVideoComments

public ResponseList<Comment> getVideoComments(java.lang.String videoId)
                                       throws FacebookException
Description copied from interface: VideoMethods
Returns the comments on a video.

Specified by:
getVideoComments in interface VideoMethods
Parameters:
videoId - the ID of a video
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#comments - Facebook Developers

getVideoComments

public ResponseList<Comment> getVideoComments(java.lang.String videoId,
                                              Reading reading)
                                       throws FacebookException
Description copied from interface: VideoMethods
Returns the comments on a video.

Specified by:
getVideoComments in interface VideoMethods
Parameters:
videoId - the ID of a video
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
comments
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#comments - Facebook Developers

commentVideo

public java.lang.String commentVideo(java.lang.String videoId,
                                     java.lang.String message)
                              throws FacebookException
Description copied from interface: VideoMethods
Comments on the video.

Specified by:
commentVideo in interface VideoMethods
Parameters:
videoId - the ID of the video
message - comment text
Returns:
The new comment ID
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video#comments - Facebook Developers

getVideoCover

public java.net.URL getVideoCover(java.lang.String videoId)
                           throws FacebookException
Description copied from interface: VideoMethods
Returns url of the image which represents the content of a video.

Specified by:
getVideoCover in interface VideoMethods
Parameters:
videoId - the ID of a video
Returns:
url
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Video - Facebook Developers - Connections - picture

getInsights

public ResponseList<Insight> getInsights(java.lang.String objectId,
                                         java.lang.String metric)
                                  throws FacebookException
Specified by:
getInsights in interface InsightMethods
Throws:
FacebookException

getInsights

public ResponseList<Insight> getInsights(java.lang.String objectId,
                                         java.lang.String metric,
                                         Reading reading)
                                  throws FacebookException
Specified by:
getInsights in interface InsightMethods
Throws:
FacebookException

searchPosts

public ResponseList<Post> searchPosts(java.lang.String query)
                               throws FacebookException
Description copied from interface: SearchMethods
Searches public posts.

Specified by:
searchPosts in interface SearchMethods
Parameters:
query - the search condition
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchPosts

public ResponseList<Post> searchPosts(java.lang.String query,
                                      Reading reading)
                               throws FacebookException
Description copied from interface: SearchMethods
Searches public posts.

Specified by:
searchPosts in interface SearchMethods
Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
posts
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchUsers

public ResponseList<User> searchUsers(java.lang.String query)
                               throws FacebookException
Description copied from interface: SearchMethods
Searches users.

Specified by:
searchUsers in interface SearchMethods
Parameters:
query - the search condition
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchUsers

public ResponseList<User> searchUsers(java.lang.String query,
                                      Reading reading)
                               throws FacebookException
Description copied from interface: SearchMethods
Searches users.

Specified by:
searchUsers in interface SearchMethods
Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchEvents

public ResponseList<Event> searchEvents(java.lang.String query)
                                 throws FacebookException
Description copied from interface: SearchMethods
Searches events.

Specified by:
searchEvents in interface SearchMethods
Parameters:
query - the search condition
Returns:
events
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchEvents

public ResponseList<Event> searchEvents(java.lang.String query,
                                        Reading reading)
                                 throws FacebookException
Description copied from interface: SearchMethods
Searches events.

Specified by:
searchEvents in interface SearchMethods
Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
events
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchGroups

public ResponseList<Group> searchGroups(java.lang.String query)
                                 throws FacebookException
Description copied from interface: SearchMethods
Searches groups.

Specified by:
searchGroups in interface SearchMethods
Parameters:
query - the search condition
Returns:
groups
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchGroups

public ResponseList<Group> searchGroups(java.lang.String query,
                                        Reading reading)
                                 throws FacebookException
Description copied from interface: SearchMethods
Searches groups.

Specified by:
searchGroups in interface SearchMethods
Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
groups
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchPlaces

public ResponseList<Place> searchPlaces(java.lang.String query)
                                 throws FacebookException
Description copied from interface: SearchMethods
Searches places.

Specified by:
searchPlaces in interface SearchMethods
Parameters:
query - the search condition
Returns:
places
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchPlaces

public ResponseList<Place> searchPlaces(java.lang.String query,
                                        Reading reading)
                                 throws FacebookException
Description copied from interface: SearchMethods
Searches places.

Specified by:
searchPlaces in interface SearchMethods
Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
places
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchPlaces

public ResponseList<Place> searchPlaces(java.lang.String query,
                                        GeoLocation center,
                                        int distance)
                                 throws FacebookException
Description copied from interface: SearchMethods
Searches places.

Specified by:
searchPlaces in interface SearchMethods
Parameters:
query - the search condition
center - latitude and longitude
distance - distance
Returns:
places
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchPlaces

public ResponseList<Place> searchPlaces(java.lang.String query,
                                        GeoLocation center,
                                        int distance,
                                        Reading reading)
                                 throws FacebookException
Description copied from interface: SearchMethods
Searches places. narrows the search to a specific location and distance.

Specified by:
searchPlaces in interface SearchMethods
Parameters:
query - the search condition
center - latitude and longitude
distance - distance
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
places
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchCheckins

public ResponseList<Checkin> searchCheckins()
                                     throws FacebookException
Description copied from interface: SearchMethods
Returns latest checkins.

Specified by:
searchCheckins in interface SearchMethods
Returns:
checkins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchCheckins

public ResponseList<Checkin> searchCheckins(Reading reading)
                                     throws FacebookException
Description copied from interface: SearchMethods
Returns latest checkins.

Specified by:
searchCheckins in interface SearchMethods
Parameters:
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
checkins
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchLocations

public ResponseList<Location> searchLocations(GeoLocation center,
                                              int distance)
                                       throws FacebookException
Description copied from interface: SearchMethods
Returns locations near a geographical location.

Specified by:
searchLocations in interface SearchMethods
Parameters:
center - latitude and longitude
distance - distance
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchLocations

public ResponseList<Location> searchLocations(GeoLocation center,
                                              int distance,
                                              Reading reading)
                                       throws FacebookException
Description copied from interface: SearchMethods
Returns locations near a geographical location.

Specified by:
searchLocations in interface SearchMethods
Parameters:
center - latitude and longitude
distance - distance
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchLocations

public ResponseList<Location> searchLocations(java.lang.String placeId)
                                       throws FacebookException
Description copied from interface: SearchMethods
Returns a particular place.

Specified by:
searchLocations in interface SearchMethods
Parameters:
placeId - specify the ID of the place
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

searchLocations

public ResponseList<Location> searchLocations(java.lang.String placeId,
                                              Reading reading)
                                       throws FacebookException
Description copied from interface: SearchMethods
Returns a particular place.

Specified by:
searchLocations in interface SearchMethods
Parameters:
placeId - specify the ID of the place
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
locations
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Graph API#searching - Facebook Developers

search

public ResponseList<JSONObject> search(java.lang.String query)
                                throws FacebookException
Description copied from interface: SearchMethods
Searches every type all public objects.

Specified by:
search in interface SearchMethods
Parameters:
query - the search condition
Returns:
objects
Throws:
FacebookException - when Facebook service or network is unavailable

search

public ResponseList<JSONObject> search(java.lang.String query,
                                       Reading reading)
                                throws FacebookException
Description copied from interface: SearchMethods
Searches every type all public objects.

Specified by:
search in interface SearchMethods
Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
objects
Throws:
FacebookException - when Facebook service or network is unavailable

searchPages

public ResponseList<Page> searchPages(java.lang.String query)
                               throws FacebookException
Description copied from interface: SearchMethods
Searches pages.

Specified by:
searchPages in interface SearchMethods
Parameters:
query - the search condition
Returns:
pages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Search - Facebook Developers

searchPages

public ResponseList<Page> searchPages(java.lang.String query,
                                      Reading reading)
                               throws FacebookException
Description copied from interface: SearchMethods
Searches pages.

Specified by:
searchPages in interface SearchMethods
Parameters:
query - the search condition
reading - optional reading parameters. see Graph API#reading - Facebook Developers
Returns:
pages
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Search - Facebook Developers

executeFQL

public JSONArray executeFQL(java.lang.String query)
                     throws FacebookException
Description copied from interface: FQLMethods
Executes a single FQL query.

Specified by:
executeFQL in interface FQLMethods
Parameters:
query - FQL query
Returns:
array of json objects
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Facebook Query Language (FQL) - Facebook Developers

executeFQL

public JSONArray executeFQL(java.lang.String query,
                            java.util.Locale locale)
                     throws FacebookException
Description copied from interface: FQLMethods
Executes a single FQL query.

Specified by:
executeFQL in interface FQLMethods
Parameters:
query - FQL query
locale - Locale
Returns:
array of json objects
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Facebook Query Language (FQL) - Facebook Developers

executeMultiFQL

public java.util.Map<java.lang.String,JSONArray> executeMultiFQL(java.util.Map<java.lang.String,java.lang.String> queries)
                                                          throws FacebookException
Description copied from interface: FQLMethods
Executes multiple FQL queries.

Specified by:
executeMultiFQL in interface FQLMethods
Parameters:
queries - FQL queries
Returns:
results Map (key => given query's key : value => array of json objects)
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Facebook Query Language (FQL) - Facebook Developers

executeMultiFQL

public java.util.Map<java.lang.String,JSONArray> executeMultiFQL(java.util.Map<java.lang.String,java.lang.String> queries,
                                                                 java.util.Locale locale)
                                                          throws FacebookException
Description copied from interface: FQLMethods
Executes multiple FQL queries.

Specified by:
executeMultiFQL in interface FQLMethods
Parameters:
queries - FQL queries
locale - Locale
Returns:
results Map (key => given query's key : value => array of json objects)
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Facebook Query Language (FQL) - Facebook Developers

convertQueriesToJson

private java.lang.String convertQueriesToJson(java.util.Map<java.lang.String,java.lang.String> queries)

createTestUser

public TestUser createTestUser(java.lang.String appId)
                        throws FacebookException
Description copied from interface: TestUserMethods
Creates a test user associated with a particular app.

Specified by:
createTestUser in interface TestUserMethods
Parameters:
appId - the ID of the app
Returns:
Test User
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Test Users - Facebook Developers

createTestUser

public TestUser createTestUser(java.lang.String appId,
                               java.lang.String name,
                               java.lang.String locale,
                               java.lang.String permissions)
                        throws FacebookException
Description copied from interface: TestUserMethods
Creates a test user associated with a particular app.

Specified by:
createTestUser in interface TestUserMethods
Parameters:
appId - the ID of the app
name - test user name
locale - locale
permissions - comma-separated list of permissions
Returns:
Test User
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Test Users - Facebook Developers

getTestUsers

public java.util.List<TestUser> getTestUsers(java.lang.String appId)
                                      throws FacebookException
Description copied from interface: TestUserMethods
Returns test users associated with a particular app.

Specified by:
getTestUsers in interface TestUserMethods
Parameters:
appId - the ID of the app
Returns:
Test Users
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Test Users - Facebook Developers

deleteTestUser

public boolean deleteTestUser(java.lang.String testUserId)
                       throws FacebookException
Description copied from interface: TestUserMethods
Deletes the test user.

Specified by:
deleteTestUser in interface TestUserMethods
Parameters:
testUserId - the ID of the test user
Returns:
true if delete is successful
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Test Users - Facebook Developers

makeFriendTestUser

public boolean makeFriendTestUser(TestUser testUser1,
                                  TestUser testUser2)
                           throws FacebookException
Description copied from interface: TestUserMethods
Makes friends connections for a test user with other test users.

Specified by:
makeFriendTestUser in interface TestUserMethods
Parameters:
testUser1 - test user
testUser2 - test user
Returns:
true on success, false otherwise
Throws:
FacebookException - when Facebook service or network is unavailable
See Also:
Test Users - Facebook Developers

fetchNext

public <T> ResponseList<T> fetchNext(Paging<T> paging)
                          throws FacebookException
Description copied from interface: FacebookBase
Fetches the data of the next page.

Specified by:
fetchNext in interface FacebookBase
Parameters:
paging - paging information of Graph API result
Returns:
the data of the next page
Throws:
FacebookException - when Facebook service or network is unavailable

fetchPrevious

public <T> ResponseList<T> fetchPrevious(Paging<T> paging)
                              throws FacebookException
Description copied from interface: FacebookBase
Fetches the data of the previous page.

Specified by:
fetchPrevious in interface FacebookBase
Parameters:
paging - paging information of Graph API result
Returns:
the data of the previous page
Throws:
FacebookException - when Facebook service or network is unavailable

fetchPaging

private <T> ResponseList<T> fetchPaging(java.net.URL url,
                                        java.lang.Class<T> jsonObjectType)
                             throws FacebookException
Throws:
FacebookException

_getComments

private ResponseList<Comment> _getComments(java.lang.String objectId,
                                           Reading reading)
                                    throws FacebookException
Throws:
FacebookException

_getLikes

private ResponseList<Like> _getLikes(java.lang.String objectId,
                                     Reading reading)
                              throws FacebookException
Throws:
FacebookException

_getPictureURL

private java.net.URL _getPictureURL(java.lang.String objectId,
                                    PictureSize size)
                             throws FacebookException
Throws:
FacebookException

_getSSLPictureURL

private java.net.URL _getSSLPictureURL(java.lang.String objectId,
                                       PictureSize size)
                                throws FacebookException
Throws:
FacebookException

_comment

private java.lang.String _comment(java.lang.String objectId,
                                  java.lang.String message)
                           throws FacebookException
Throws:
FacebookException

_like

private boolean _like(java.lang.String objectId)
               throws FacebookException
Throws:
FacebookException

_unlike

private boolean _unlike(java.lang.String objectId)
                 throws FacebookException
Throws:
FacebookException

_postLink

private java.lang.String _postLink(java.lang.String objectId,
                                   java.net.URL link,
                                   java.lang.String message)
                            throws FacebookException
Throws:
FacebookException

_postStatusMessage

private java.lang.String _postStatusMessage(java.lang.String objectId,
                                            java.lang.String message)
                                     throws FacebookException
Throws:
FacebookException

get

private HttpResponse get(java.lang.String url)
                  throws FacebookException
Throws:
FacebookException

get

private HttpResponse get(java.lang.String url,
                         HttpParameter[] parameters)
                  throws FacebookException
Throws:
FacebookException

getRaw

private HttpResponse getRaw(java.lang.String url)
                     throws FacebookException
Throws:
FacebookException

post

private HttpResponse post(java.lang.String url)
                   throws FacebookException
Throws:
FacebookException

post

private HttpResponse post(java.lang.String url,
                          HttpParameter[] parameters)
                   throws FacebookException
Throws:
FacebookException

delete

private HttpResponse delete(java.lang.String url)
                     throws FacebookException
Throws:
FacebookException

delete

private HttpResponse delete(java.lang.String url,
                            HttpParameter[] parameters)
                     throws FacebookException
Throws:
FacebookException

isOk

private boolean isOk(HttpResponse response)

containsAccessToken

private boolean containsAccessToken(HttpParameter[] parameters)
                             throws FacebookException
Throws:
FacebookException