Wiki
Clone wikiOAuth / Facebook Album
( ! ) Warning
Please refer to Facebook doc to know what permissions need to be required in Facebook::request()
.
Album Retrieval
Retrieve the album with ID equal to $id
#!php $album = Facebook::album($id)->get();
Photos Retrieval
Retrieve the photos of the album with ID equal to $id
#!php $photos = Facebook::album($id)->photos();
Likes Retrieval
Retrieve the likes of the album with ID equal to $id
#!php $likes = Facebook::album($id)->likes();
Comments Retrieval
Retrieve the comments of the album with ID equal to $id
#!php $comments = Facebook::album($id)->comments();
Album Creation
Create an album with the given $title
. Optionally you may set $description
and $privacy
.
Note:
$privacy
can be one of the following values:
all
- album is visible to everyone
fof
- album is visible to friends of friends
friends
- album is visible to all friends
me
- album is visible only to its creatoran array following this syntax
#!php $albumID = Facebook::album()->create($title, $description, $privacy);
Photo Addition
Add a photo to the album with ID equal to $id
. Optionally you may set a $description
.
#!php $photo = Input::file('photo'); $photoID = Facebook::album()->addPhoto($photo, $description);
Album Creation With Photos
Create an album and add photos to it in a single line. Both album and photo $description
and $privacy
are optional.
#!php $photo = Input::file('photo'); $albumID = Facebook::album()->with($photo, $description)->create($title, $description, $privacy);
Like Addition
Add a like to the album with ID equal to $id
.
#!php $boolean = Facebook::album($id)->like();
Comment Addition
Add a comment to the album with ID equal to $id
.
#!php $commentID = Facebook::album($id)->comment($comment);
Updated