Represents an Album.
GET /{album-id}
Get fields and edges on an Album.
Requirements depend on the type of node that the Album is on.
Requirement | User nodes | Page nodes | Group nodes |
---|---|---|---|
Any | Any | ||
None | To get public Page content of Pages you can not perform a task on, you will need | None | |
Unpublished Pages:
Published Pages: | None | ||
Not applicable | Not applicable | Admin |
GET /v21.0/{album-id} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'/{album-id}',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
"/{album-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{album-id}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{album-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
Name | Description | Type |
---|---|---|
| The album ID. |
|
| Whether the viewer can upload photos to this album. |
|
| The approximate number of photos in the album. This is not necessarily an exact count |
|
| The ID of the album's cover photo. | |
| The time the album was initially created. |
|
| The description of the album. |
|
| The event associated with this album. | |
| The current user, if the current user created the album. | |
| A link to this album on Facebook. |
|
| The textual location of the album. |
|
| The title of the album. |
|
| The place associated with this album. | |
| The privacy settings for the album. |
|
| The type of the album. |
|
| The last time the album was updated. |
|
You can request the following edges as path parameters or by using the fields
query string parameter.
You can't perform this operation on this endpoint.
You can't perform this operation on this endpoint.
You can't perform this operation on this endpoint.