Wiki
Clone wikiOAuth / Facebook Event
( ! ) Warning
Please refer to Facebook doc to know what permissions need to be required in Facebook::request()
.
Retrieve an event
Retrieve the event with ID equal to $id
#!php $event = Facebook::event($id)->get();
Retrieve all events of current user
Do not provide an event ID to get all events of the logged in user
#!php $event = Facebook::event()->get();
Remove an event
Remove the event with ID equal to $id
#!php $boolean = Facebook::event($id)->remove();
Update an event
Update the event with ID equal to $id
. Please refer to Facebook doc to see the fields within $array
#!php $boolean = Facebook::event($id)->update($array);
Create an event
Create an event for the current user. Please refer to Facebook doc to see the fields within $array
#!php $eventID = Facebook::event()->create($array);
Retrieve the attenders for an event
Retrieve people who are attending an event with ID equal to $id
#!php $attenders = Facebook::event($id)->attenders();
Attend an event
Attend an event with ID equal to $id
#!php $boolean = Facebook::event($id)->attend();
Retrieve the decliners for an event
Retrieve people who declined the invite to an event with ID equal to $id
#!php $decliners = Facebook::event($id)->decliners();
Decline the invite to an event
Decline the invite to an event with ID equal to $id
#!php $boolean = Facebook::event($id)->decline();
Retrieve invited
Retrieve people who have been invited to an event with ID equal to $id
#!php $invited = Facebook::event($id)->invited();
Invite people
Invite people to an event with ID equal to $id
. You may also use an array to collect user IDs.
#!php $boolean = Facebook::event($id)->invite($userID1, $userID2); $boolean = Facebook::event($id)->invite(array($userID1, $userID2));
Exclude people
Exclude people from an event with ID equal to $id
. You may also use an array to collect user IDs.
#!php $boolean = Facebook::event($id)->exclude($userID1, $userID2); $boolean = Facebook::event($id)->exclude(array($userID1, $userID2));
Retrieve all posts
Retrieve all posts of an event with ID equal to $id
#!php $posts = Facebook::event($id)->posts();
Retrieve all maybes
Retrieve people who replied with maybe to an event with ID equal to $id
#!php $maybes = Facebook::event($id)->maybes();
Reply with maybe
Reply with maybe to an event with ID equal to $id
#!php $boolean = Facebook::event($id)->maybe();
Retrieve all no-replies
Retrieve people who haven't replied to an event with ID equal to $id
#!php $noreplies = Facebook::event($id)->noreplies();
Retrieve the picture
Retrieve the picture of an event with ID equal to $id
#!php $picture = Facebook::event($id)->picture();
Set the picture
Set the picture to an event with ID equal to $id
. Picture can be either an uploaded image or a URL. This method can be chained:
#!php $image = Input::file('picture'); $eventID = Facebook::event($id)->setPicture($image)->create($array); $eventID = Facebook::event($id)->setPicture('http://example.com/image.jpg')->create($array);
Retrieve all photos
Retrieve all photos of an event with ID equal to $id
#!php $photos = Facebook::event($id)->photos();
Add a photo
Add a photo to an event with ID equal to $id
. Photo can be either an uploaded image or a URL. You may add a description
#!php $image = Input::file('photo'); $photoID = Facebook::event($id)->addPhoto($image, $description); $photoID = Facebook::event($id)->addPhoto('http://example.com/image.jpg', $description);
Add a photo (method chaining)
Add a photo to an event with ID equal to $id
allowing method chaining. Photo can be either an uploaded image or a URL. You may add a description
#!php $image = Input::file('photo'); $eventID = Facebook::event($id)->with($image, $description)->create($array); $eventID = Facebook::event($id)->with('http://example.com/image.jpg', $description)->create($array);
Retrieve all videos
Retrieve all videos of an event with ID equal to $id
#!php $videos = Facebook::event($id)->videos();
Add a video
Add a video to an event with ID equal to $id
. Video can be either an uploaded video or a URL. You may add a title and a description
#!php $video = Input::file('video'); $videoID = Facebook::event($id)->addVideo($video, $title, $description); $videoID = Facebook::event($id)->addVideo('http://example.com/image.jpg', $title, $description);
Add a video (method chaining)
Add a video to an event with ID equal to $id
allowing method chaining. Video can be either an uploaded video or a URL. You may add a title and a description
#!php $video = Input::file('video'); $videoID = Facebook::event($id)->with($video, $title, $description)->create($array); $videoID = Facebook::event($id)->with('http://example.com/image.jpg', $title, $description)->create($array);
Updated