public interface EventMethods
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
deleteEvent(java.lang.String eventId)
Deletes the event.
|
boolean |
deleteEventPicture(java.lang.String eventId)
Deletes the event's profile picture.
|
boolean |
editEvent(java.lang.String eventId,
EventUpdate eventUpdate)
Updates the event.
|
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<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.
|
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.
|
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.
|
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.
|
boolean |
uninviteFromEvent(java.lang.String eventId,
java.lang.String userId)
Un-invites user from the event.
|
boolean |
updateEventPicture(java.lang.String eventId,
Media source)
Updates the event's profile picture.
|
ResponseList<Event> getEvents() throws FacebookException
FacebookException - when Facebook service or network is unavailableResponseList<Event> getEvents(Reading reading) throws FacebookException
reading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailableResponseList<Event> getEvents(java.lang.String id) throws FacebookException
id - the ID of a userFacebookException - when Facebook service or network is unavailableResponseList<Event> getEvents(java.lang.String id, Reading reading) throws FacebookException
id - the ID of a user/pagereading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String createEvent(EventUpdate eventUpdate) throws FacebookException
eventUpdate - FacebookException - when Facebook service or network is unavailablejava.lang.String createEvent(java.lang.String id,
EventUpdate eventUpdate)
throws FacebookException
id - the ID of a user/pageeventUpdate - a event to be createdFacebookException - when Facebook service or network is unavailableboolean editEvent(java.lang.String eventId,
EventUpdate eventUpdate)
throws FacebookException
eventId - the ID of a eventeventUpdate - the event to be updatedFacebookException - when Facebook service or network is unavailableboolean deleteEvent(java.lang.String eventId)
throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableEvent getEvent(java.lang.String eventId) throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableEvent getEvent(java.lang.String eventId, Reading reading) throws FacebookException
eventId - the ID of a eventreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String postEventLink(java.lang.String eventId,
java.net.URL link)
throws FacebookException
eventId - the ID of a eventlink - link URLFacebookException - when Facebook service or network is unavailablejava.lang.String postEventLink(java.lang.String eventId,
java.net.URL link,
java.lang.String message)
throws FacebookException
eventId - the ID of a eventlink - link URLmessage - link messageFacebookException - when Facebook service or network is unavailablejava.lang.String postEventStatusMessage(java.lang.String eventId,
java.lang.String message)
throws FacebookException
eventId - the ID of a eventmessage - status message contentFacebookException - when Facebook service or network is unavailableResponseList<RSVPStatus> getRSVPStatusAsNoreply(java.lang.String eventId) throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableResponseList<RSVPStatus> getRSVPStatusAsNoreply(java.lang.String eventId, java.lang.String userId) throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableResponseList<RSVPStatus> getRSVPStatusAsInvited(java.lang.String eventId) throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableResponseList<RSVPStatus> getRSVPStatusAsInvited(java.lang.String eventId, java.lang.String userId) throws FacebookException
eventId - the ID of a eventuserId - the ID of a userFacebookException - when Facebook service or network is unavailableboolean inviteToEvent(java.lang.String eventId,
java.lang.String userId)
throws FacebookException
eventId - the ID of a eventuserId - the ID of the userFacebookException - when Facebook service or network is unavailableboolean inviteToEvent(java.lang.String eventId,
java.lang.String[] userIds)
throws FacebookException
eventId - the ID of a eventuserIds - the IDs of usersFacebookException - when Facebook service or network is unavailableboolean uninviteFromEvent(java.lang.String eventId,
java.lang.String userId)
throws FacebookException
eventId - the ID of a eventuserId - the ID of a userFacebookException - when Facebook service or network is unavailableResponseList<RSVPStatus> getRSVPStatusInAttending(java.lang.String eventId) throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableResponseList<RSVPStatus> getRSVPStatusInAttending(java.lang.String eventId, java.lang.String userId) throws FacebookException
eventId - the ID of a eventuserId - the ID of a userFacebookException - when Facebook service or network is unavailableboolean rsvpEventAsAttending(java.lang.String eventId)
throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableResponseList<RSVPStatus> getRSVPStatusInMaybe(java.lang.String eventId) throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableResponseList<RSVPStatus> getRSVPStatusInMaybe(java.lang.String eventId, java.lang.String userId) throws FacebookException
eventId - the ID of a eventuserId - the ID of a userFacebookException - when Facebook service or network is unavailableboolean rsvpEventAsMaybe(java.lang.String eventId)
throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableResponseList<RSVPStatus> getRSVPStatusInDeclined(java.lang.String eventId) throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableResponseList<RSVPStatus> getRSVPStatusInDeclined(java.lang.String eventId, java.lang.String userId) throws FacebookException
eventId - the ID of a eventuserId - the ID of a userFacebookException - when Facebook service or network is unavailableboolean rsvpEventAsDeclined(java.lang.String eventId)
throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailablejava.net.URL getEventPictureURL(java.lang.String eventId)
throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailablejava.net.URL getEventPictureURL(java.lang.String eventId,
PictureSize size)
throws FacebookException
eventId - the ID of a eventsize - picture sizeFacebookException - when Facebook service or network is unavailableboolean updateEventPicture(java.lang.String eventId,
Media source)
throws FacebookException
eventId - the ID of a eventsource - picture resourceFacebookException - when Facebook service or network is unavailableboolean deleteEventPicture(java.lang.String eventId)
throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableResponseList<Photo> getEventPhotos(java.lang.String eventId) throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableResponseList<Photo> getEventPhotos(java.lang.String eventId, Reading reading) throws FacebookException
eventId - the ID of a eventreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String postEventPhoto(java.lang.String eventId,
Media source)
throws FacebookException
eventId - the ID of a eventsource - photo resourceFacebookException - when Facebook service or network is unavailablejava.lang.String postEventPhoto(java.lang.String eventId,
Media source,
java.lang.String message)
throws FacebookException
eventId - the ID of a eventsource - photo resourcemessage - photo descriptionFacebookException - when Facebook service or network is unavailableResponseList<Video> getEventVideos(java.lang.String eventId) throws FacebookException
eventId - the ID of a eventFacebookException - when Facebook service or network is unavailableResponseList<Video> getEventVideos(java.lang.String eventId, Reading reading) throws FacebookException
eventId - the ID of a eventreading - optional reading parameters. see Graph API#reading - Facebook DevelopersFacebookException - when Facebook service or network is unavailablejava.lang.String postEventVideo(java.lang.String eventId,
Media source)
throws FacebookException
eventId - the ID of a eventsource - video resourceFacebookException - when Facebook service or network is unavailablejava.lang.String postEventVideo(java.lang.String eventId,
Media source,
java.lang.String title,
java.lang.String description)
throws FacebookException
eventId - the ID of a eventsource - video resourcetitle - video titledescription - video descriptionFacebookException - when Facebook service or network is unavailable