Facebook4J

- An 'Unofficial' library for the Facebook API in Java -

API Support matrix

Account

EndpointFacebook4J Method
GET/USER_ID/accounts
(see: Connections - accounts)
getAccounts()

* You can narrow API methods down to these via Facebook#accounts().


Activity

EndpointFacebook4J Method
GET/USER_ID/activities
(see: Connections - activities)
getActivities()

* You can narrow API methods down to these via Facebook#activities().


Album

EndpointFacebook4J Method
GET/ALBUM_IDgetAlbum()
GET/ALBUM_ID/photos
(see: Connections - photos)
getAlbumPhotos()
POST/ALBUM_ID/photosaddAlbumPhoto()
GET/ALBUM_ID/likes
(see: Connections - likes)
getAlbumLikes()
POST/ALBUM_ID/likeslikeAlbum()
DELETE/ALBUM_ID/likesunlikeAlbum()
GET/ALBUM_ID/comments
(see: Connections - comments)
getAlbumComments()
POST/ALBUM_ID/commentscommentAlbum()
GET/ALBUM_ID/picture
(see: Connections - picture)
getAlbumCoverPhoto()
GET/USER_ID/albums
(see: Connections - albums)
getAlbums()
GET/PAGE_ID/albums
(see: Connections - albums)
getAlbums()
POST/USER_ID/albumscreateAlbum()
GET/ALBUM_ID/reactionsgetAlbumReactions()

* You can narrow API methods down to these via Facebook#albums().


Checkin

EndpointFacebook4J Method
GET/CHECKIN_IDgetCheckin()
GET/CHECKIN_ID/comments
(see: Connections - comments)
getCheckinComments()
POST/CHECKIN_ID/commentscommentCheckin()
GET/CHECKIN_ID/likes
(see: Connections - likes)
getCheckinLikes()
POST/CHECKIN_ID/likeslikeCheckin()
DELETE/CHECKIN_ID/likesunlikeCheckin
GET/USER_ID/checkins
(see: Connections - checkins)
getCheckins()
GET/PAGE_ID/checkins
(see: Connections - checkins)
getCheckins()
POST/USER_ID/checkinscheckin()

* You can narrow API methods down to these via Facebook#checkins().


Comment

EndpointFacebook4J Method
GET/COMMENT_IDgetComment()
GET/COMMENT_ID/commentsgetCommentReplies()
DELETE/COMMENT_IDdeleteComment()
GET/COMMENT_ID/likes
(see: Connections - likes)
getCommentLikes()
POST/COMMENT_ID/likeslikeComment()
DELETE/COMMENT_ID/likesunlikeComment()

* You can narrow API methods down to these via Facebook#comments().


Domain

EndpointFacebook4J Method
GET/DOMAIN_IDgetDomain()
GET?domain=DOMAIN_NAMEgetDomainByName()
GET?domains=DOMAIN_NAME1,...getDomainsByName()

* You can narrow API methods down to these via Facebook#domains().


Event

EndpointFacebook4J Method
GET/EVENT_IDgetEvent()
POST/EVENT_ID
(see: Edit section)
editEvent()
DELETE/EVENT_ID
(see: Delete section)
deleteEvent()
GET/EVENT_ID/feed
(see: Connections - feed)
getEventFeed()
POST/EVENT_ID/feedpostEventLink()
POST/EVENT_ID/feedpostEventFeed()
POST/EVENT_ID/feedpostEventStatusMessage()
GET/EVENT_ID/noreplygetRSVPStatusAsNoreply()
GET/EVENT_ID/noreply/USER_IDgetRSVPStatusAsNoreply()
GET/EVENT_ID/invitedgetRSVPStatusAsInvited()
GET/EVENT_ID/invited/USER_IDgetRSVPStatusAsInvited()
POST/EVENT_ID/invited/USER_IDinviteToEvent()
POST/EVENT_ID/invited?users=USER_ID,...inviteToEvent()
DELETE/EVENT_ID/invited/USER_IDuninviteFromEvent()
GET/EVENT_ID/attendinggetRSVPStatusInAttending()
GET/EVENT_ID/attending/USER_IDgetRSVPStatusInAttending()
POST/EVENT_ID/attendingrsvpEventAsAttending()
GET/EVENT_ID/maybegetRSVPStatusInMaybe()
GET/EVENT_ID/maybe/USER_IDgetRSVPStatusInMaybe()
POST/EVENT_ID/maybersvpEventAsMaybe()
GET/EVENT_ID/declinedgetRSVPStatusInDeclined()
GET/EVENT_ID/declined/USER_IDgetRSVPStatusInDeclined()
POST/EVENT_ID/declinedrsvpEventAsDeclined()
GET/EVENT_ID/picturegetEventPictureURL()
POST/EVENT_ID/pictureupdateEventPicture()
DELETE/EVENT_ID/picturedeleteEventPicture()
GET/EVENT_ID/videogetEventVideos()
POST/EVENT_ID/videopostEventVideo()
GET/EVENT_ID/photosgetEventPhotos()
POST/EVENT_ID/photospostEventPhoto()
GET/USER_ID/events
(see: Connections - events)
getEvents()
GET/PAGE_ID/events
(see: Connections - events)
getEvents()
POST/USER_ID/eventscreateEvent()
POST/PAGE_ID/eventscreateEvent()

* You can narrow API methods down to these via Facebook#events().


Family

EndpointFacebook4J Method
GET/USER_ID/family
(see: Connections - family)
getFamily()

* You can narrow API methods down to these via Facebook#family().


Favorite

EndpointFacebook4J Method
GET/USER_ID/books
(see: Connections - books)
getBooks()
GET/USER_ID/games
(see: Connections - games)
getGames()
GET/USER_ID/movies
(see: Connections - movies)
getMovies()
GET/USER_ID/music
(see: Connections - music)
getMusic()
GET/USER_ID/television
(see: Connections - television)
getTelevision()
GET/USER_ID/interests
(see: Connections - interests)
getInterests()

* You can narrow API methods down to these via Facebook#favorites().


Friend

EndpointFacebook4J Method
GET/FRIENDLIST_IDgetFriendlist()
DELETE/FRIENDLIST_IDdeleteFriendlist()
GET/FRIENDLIST_ID/members
(see: Connections - members)
getFriendlistMembers()
POST/FRIENDLIST_ID/membersaddFriendlistMember()
DELETE/FRIENDLIST_ID/membersremoveFriendlistMember()
GET/USER_ID/friendlists
(see: Connections - friendlists)
getFriendlists()
POST/USER_ID/friendlistscreateFriendlist()
GET/USER_ID/friendrequestsgetFriendRequests()
GET/USER_ID/friendsgetFriends()
GET/USER_ID/friends/FRIEND_IDgetBelongsFriend()
GET/USER_ID/mutualfriends/FRIEND_IDgetMutualFriends()
GET/USER_ID/taggable_friendsgetTaggableFriends()

* You can narrow API methods down to these via Facebook#friends().


Game

EndpointFacebook4J Method
GET/USER_ID/achievementsgetAchievements()
POST/USER_ID/achievementspostAchievement()
DELETE/USER_ID/achievementsdeleteAchievement()
GET/USER_ID/scoresgetScores()
POST/USER_ID/scorespostScore()
DELETE/USER_ID/scoresdeleteScore()

* You can narrow API methods down to these via Facebook#games().


Group

EndpointFacebook4J Method
GET/GROUP_IDgetGroup()
GET/GROUP_ID/feed
(see: Connections - feed)
getGroupFeed()
POST/GROUP_ID/feedpostGroupLink()
POST/GROUP_ID/feedpostGroupFeed()
POST/GROUP_ID/feedpostGroupStatusMessage()
GET/GROUP_ID/membersgetGroupMembers()
GET/GROUP_ID/picture
(see: Connections - picture)
getGroupPictureURL()
GET/GROUP_ID/docs
(see: Connections - docs)
getGroupDocs()
GET/USER_ID/groups
(see: Connections - groups)
getGroups()

* You can narrow API methods down to these via Facebook#groups().


Insight

EndpointFacebook4J Method
GET/OBJECT_ID/insights/METRICgetInsights()

* You can narrow API methods down to these via Facebook#insights().


Like

EndpointFacebook4J Method
GET/USER_ID/likesgetUserLikes()

* You can narrow API methods down to these via Facebook#likes().


EndpointFacebook4J Method
GET/LINK_IDgetLink()
GET/LINK_ID/comments
(see: Connections - comments)
getLinkComments()
POST/LINK_ID/commentscommentLink()
GET/LINK_ID/likes
(see: Connections - likes)
getLinkLikes()
POST/LINK_ID/likeslikeLink()
DELETE/LINK_ID/likesunlikeLink()
GET/USER_ID/links
(see: Connections - links)
getLinks()
GET/PAGE_ID/links
(see: Connections - links)
getLinks()
GET/EVENT_ID/links
getLinks()

* You can narrow API methods down to these via Facebook#links().


Location

EndpointFacebook4J Method
GET/USER_ID/locations
(see: Connections - locations)
getLocations()
GET/USER_ID/tagged_placesgetTaggedPlaces()

* You can narrow API methods down to these via Facebook#locations().


Message

EndpointFacebook4J Method
GET/MESSAGE_IDgetMessage()
GET/USER_ID/inbox
(see: Connections - inbox)
getInbox()
GET/USER_ID/outbox
(see: Connections - outbox)
getOutbox()
GET/USER_ID/updates
(see: Connections - updates)
getUpdates()

* You can narrow API methods down to these via Facebook#messages().


Conversation

EndpointFacebook4J Method
GET/PAGE_ID/conversationsgetConversations()
GET/CONVERSATION_IDgetConversation()
GET/CONVERSATION_ID/messagesanswerConversation()

* You can narrow API methods down to these via Facebook#conversations().


Note

EndpointFacebook4J Method
GET/NOTE_IDgetNote()
GET/NOTE_ID/comments
(see: Connections - comments)
getNoteComments()
POST/NOTE_ID/commentscommentNote()
GET/NOTE_ID/likes
(see: Connections - likes)
getNoteLikes()
POST/NOTE_ID/likeslikeNote()
DELETE/NOTE_ID/likesunlikeNote()
GET/USER_ID/notes
(see: Connections - notes)
getNotes()
GET/PAGE_ID/notes
(see: Connections - notes)
getNotes()
POST/USER_ID/notescreateNote()
POST/PAGE_ID/notescreateNote()

* You can narrow API methods down to these via Facebook#notes().


Notification

EndpointFacebook4J Method
GET/USER_ID/notifications
(see: 'Reading and Managing Notifications' section)
getNotifications()
POST/NOTIFICATION_ID
(see: 'Reading and Managing Notifications' section)
markNotificationAsRead()

* You can narrow API methods down to these via Facebook#notifications().


Permission

EndpointFacebook4J Method
GET/USER_ID/permissionsgetPermissions()
DELETE/USER_ID/permissions/PERMISSION_NAMEdeletePermission()
DELETE/USER_ID/permissionsdeleteAllPermissions()

* You can narrow API methods down to these via Facebook#permissions().


Page

EndpointFacebook4J Method
GET/PAGE_IDgetPage()
POST/PAGE_IDupdatePageBasicAttributes()
POST/PAGE_IDupdatePageCoverPhoto()
POST/PAGE_ID/feedpostBackdatingFeed()
GET/PAGE_ID/picturegetPagePictureURL()
POST/PAGE_ID/pictureupdatePageProfilePhoto()
GET/PAGE_ID/settingsgetPageSettings()
POST/PAGE_ID/settingsupdatePageSetting()
GET/PAGE_ID/taggedgetPageTagged()
GET/PAGE_ID/promotable_postsgetPromotablePosts()
GET/PAGE_ID/adminsgetPageAdmins()
GET/PAGE_ID/milestonesgetMilestones()
POST/PAGE_ID/milestonescreateMilestone()
DELETE/PAGE_ID/milestonesdeleteMilestone()
GET/PAGE_ID/blockedgetBlocked()
POST/PAGE_ID/blockedblock()
DELETE/PAGE_ID/blockedunblock()
GET/PAGE_ID/tabsgetTabs()
POST/PAGE_ID/tabsinstallTab()
GET/PAGE_ID/tabsgetInstalledTabs()
POST/PAGE_ID/tabsupdateTab()
DELETE/PAGE_ID/tabsdeleteTab()
GET/PAGE_ID/global_brand_childrengetGlobalBrandChildren()
GET/PAGE_ID/insightsgetPageInsights()
GET/PAGE_ID/offersgetOffers()
POST/PAGE_ID/offerscreateOffer()
DELETE/PAGE_ID/offersdeleteOffer()
POST/POST_IDdisplayPagePost()

* You can narrow API methods down to these via Facebook#pages().


Photo

EndpointFacebook4J Method
GET/PHOTO_IDgetPhoto()
DELETE/PHOTO_IDdeletePhoto()
GET/PHOTO_ID/comments
(see: Connections - comments)
getPhotoComments()
POST/PHOTO_ID/commentscommentPhoto()
GET/PHOTO_ID/likes
(see: Connections - likes)
getPhotoLikes()
POST/PHOTO_ID/likeslikePhoto()
DELETE/PHOTO_ID/likesunlikePhoto()
GET/PHOTO_ID/picture
(see: Connections - picture)
getPhotoURL()
GET/PHOTO_ID/tags
(see: Connections - tags)
getTagsOnPhoto()
POST/PHOTO_ID/tagsaddTagToPhoto()
DELETE/PHOTO_ID/tagsdeleteTagOnPhoto()
GET/USER_ID/photos
(see: Connections - photos)
getPhotos()
POST/USER_ID/photospostPhoto()
GET/USER_ID/photos/uploaded
(see: Connections - photos/uploaded)
getUploadedPhotos()
GET/PHOTO_ID/reactionsgetPhotoReactions()
GET/PHOTO_ID/sharedpostsgetPhotoSharedposts()

* You can narrow API methods down to these via Facebook#photos().


Poke

EndpointFacebook4J Method
GET/USER_ID/pokes
(see: Connections - pokes)
getPokes()

* You can narrow API methods down to these via Facebook#pokes().


Post

EndpointFacebook4J Method
GET/POST_IDgetPost()
DELETE/POST_IDdeletePost()
GET/POST_ID/comments
(see: Connections - comments)
getPostComments()
POST/POST_ID/commentscommentPost()
GET/POST_ID/likes
(see: Connections - likes)
getPostLikes()
POST/POST_ID/likeslikePost()
DELETE/POST_ID/likesunlikePost()
GET/USER_ID/feed
(see: Connections - feed)
getFeed()
GET/PAGE_ID/feed
(see: Connections - feed)
getFeed()
GET/EVENT_ID/feed
(see: Connections - feed)
getFeed()
POST/USER_ID/feedpostFeed()
POST/PAGE_ID/feedpostFeed()
POST/EVENT_ID/feedpostFeed()
GET/USER_ID/statuses
(see: Connections - statuses)
getStatuses()
GET/PAGE_ID/statuses
(see: Connections - statuses)
getStatuses()
POST/USER_ID/feedpostStatusMessage()
POST/PAGE_ID/feedpostStatusMessage()
GET/USER_ID/home
(see: Connections - home)
getHome()
GET/USER_ID/posts
(see: Connections - posts)
getPosts()
GET/PAGE_ID/posts
(see: Connections - posts)
getPosts()
GET/USER_ID/tagged
(see: Connections - tagged)
getTagged()
GET/POST_ID/reactionsgetPostReactions()
GET/POST_ID/sharedpostsgetSharedPosts()

* You can narrow API methods down to these via Facebook#posts().


Question

EndpointFacebook4J Method
GET/QUESTION_IDgetQuestion()
DELETE/QUESTION_IDdeleteQuestion()
GET/QUESTION_ID/optionsgetQuestionOptions()
POST/QUESTION_ID/optionsaddQuestionOption()
GET/QUESTION_ID/options?fields=votes
(see: Connections - votes)
getQuestionOptionVotes()
GET/USER_ID/questionsgetQuestions()
GET/PAGE_ID/questionsgetQuestions()
POST/PAGE_ID/questionscreateQuestion()

* You can narrow API methods down to these via Facebook#questions().


Subscribe

EndpointFacebook4J Method
GET/USER_ID/subscribedto
(see: Connections - subscribedto)
getSubscribedto()
GET/USER_ID/subscribers
(see: Connections - subscribers)
getSubscribers()

* You can narrow API methods down to these via Facebook#subscribes().


User

EndpointFacebook4J Method
GET/megetMe()
GET/USER_IDgetUser()
GET/USER_ID/picture
(see: Connections - picture)
getPictureURL()
GET/USER_ID/picturegetSSLPictureURL()
GET?ids=name1,name2...getUsers()

* You can narrow API methods down to these via Facebook#users().


Video

EndpointFacebook4J Method
GET/VIDEO_IDgetVideo()
GET/VIDEO_ID/likes
(see: Connections - likes)
getVideoLikes()
POST/VIDEO_ID/likeslikeVideo()
DELETE/VIDEO_ID/likesunlikeVideo()
GET/VIDEO_ID/comments
(see: Connections - comments)
getVideoComments()
POST/VIDEO_ID/commentscommentVideo()
GET/VIDEO_ID/picture
(see: Connections - picture)
getVideoCover()
GET/USER_ID/videos
(see: Connections - videos)
getVideos()
GET/PAGE_ID/videos
(see: Connections - videos)
getVideos()
POST/USER_ID/videospostVideo()
POST/PAGE_ID/videospostVideo()
GET/VIDEO_ID/reactionsgetPostReactions()
GET/VIDEO_ID/sharedpostsgetVideoSharedposts()

* You can narrow API methods down to these via Facebook#videos().


TestUser

EndpointFacebook4J Method
POST/APP_ID/accounts/test-users?...
(see: Creating section)
createTestUser()
GET/APP_ID/accounts/test-users
(see: Accessing section)
getTestUsers()
DELETE/TEST_USER_ID
(see: Deleting section)
deleteTestUser()

* You can narrow API methods down to these via Facebook#testUsers().


FQL

EndpointFacebook4J Method
GET/fql?q=FQLexecuteFQL()
GET/fql?q={FQL_NAME1:FQL1,...}executeMultiFQL()

* You can narrow API methods down to these via Facebook#fql().


EndpointFacebook4J Method
GET/search?q=QUERY&type=postsearchPosts()
GET/search?q=QUERY&type=usersearchUsers()
GET/search?q=QUERY&type=pagesearchPages()
GET/search?q=QUERY&type=eventsearchEvents()
GET/search?q=QUERY&type=groupsearchGroups()
GET/search?q=QUERY&type=placesearchPlaces()
GET/search?q=QUERY&type=place&center=xx&distance=xxsearchPlaces()
GET/search?type=checkinsearchCheckins()
GET/search?type=location&center=xx&distance=xxsearchLocations()
GET/search?type=location&place=xxxsearchLocations()
GET/search?q=QUERYsearch()

* You can narrow API methods down to these via Facebook#search().


Batch

EndpointFacebook4J Method
POST?batch=[{...}]executeBatch()