This document refers to a feature that was removed after Graph API v3.2.
Graph API Version

Graph API Reference /{user-id}/books

The liked books listed on someone's profile under Books > Likes.

Reading

Graph API Explorer
GET /v7.0/me/books 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(
    '/me/books',
    '{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(
    "/me/books",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/me/books",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/me/books"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

Permissions

People are allowed to adjust the privacy settings for profile sections such as the Books section. Normally this section is public, and therefore accessible with any access token, however it can be set to stricter privacy settings, so you might prefer to always request the following:

  • A user access token with user_likes permission is required to view the current person's non-public liked books.

Fields

Reading this endpoint returns an array of Page objects (which represent each of the books) with the following additional fields:

NameDescriptionType

created_time

A timestamp indicating when the book was added to the person's profile.

datetime

Publishing, Deleting and Updating

You can't perform these operations on this edge.