books.book

This object type represents a book or publication. This is an appropriate type for ebooks, as well as traditional paperback or hardback books

Markup
 <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# books: http://ogp.me/ns/books#">
  <meta property="fb:app_id"      content="302184056577324" /> 
  <meta property="og:type"        content="books.book" /> 
  <meta property="og:url"         content="Put your own URL to the object here" /> 
  <meta property="og:title"       content="Snow Crash" /> 
  <meta property="og:image"       content="http://en.wikipedia.org/wiki/File:Snowcrash.jpg" /> 
  <meta property="og:description" content="In reality, Hiro Protagonist delivers pizza for Uncle Enzo&#x2019;s CosoNostra Pizza Inc., but in the Metaverse he&#x2019;s a warrior prince. Plunging headlong into the enigma of a new computer virus that&#x2019;s striking down hackers everywhere, he races along the neon-lit streets on a search-and-destroy mission for the shadowy virtual villain threatening to bring about infocalypse. Snow Crash is a mind-altering romp through a future America so bizarre, so outrageous&#x2026;you&#x2019;ll recognize it immediately." /> 
  <meta property="books:isbn"     content="0553380958" /> 
  <meta property="books:author"   content="http://samples.ogp.me/344562145628374" /> 
Create
/* make the API call */
FB.api(
    "/me/objects/books.book",
    "POST",
    {
        "object": "{\"fb:app_id\":\"302184056577324\",\"og:type\":\"books.book\",\"og:url\":\"Put your own URL to the object here\",\"og:title\":\"Snow Crash\",\"og:image\":\"http:\\\/\\\/en.wikipedia.org\\\/wiki\\\/File:Snowcrash.jpg\",\"og:description\":\"In reality, Hiro Protagonist delivers pizza for Uncle Enzo\\u2019s CosoNostra Pizza Inc., but in the Metaverse he\\u2019s a warrior prince. Plunging headlong into the enigma of a new computer virus that\\u2019s striking down hackers everywhere, he races along the neon-lit streets on a search-and-destroy mission for the shadowy virtual villain threatening to bring about infocalypse. Snow Crash is a mind-altering romp through a future America so bizarre, so outrageous\\u2026you\\u2019ll recognize it immediately.\",\"books:isbn\":\"0553380958\",\"books:author\":\"http:\\\/\\\/samples.ogp.me\\\/344562145628374\"}"
    },
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
NSDictionary *params = @{
  @"object": @"{\"fb:app_id\":\"302184056577324\",\"og:type\":\"books.book\",\"og:url\":\"Put your own URL to the object here\",\"og:title\":\"Snow Crash\",\"og:image\":\"http:\/\/en.wikipedia.org\/wiki\/File:Snowcrash.jpg\",\"og:description\":\"In reality, Hiro Protagonist delivers pizza for Uncle Enzo\u2019s CosoNostra Pizza Inc., but in the Metaverse he\u2019s a warrior prince. Plunging headlong into the enigma of a new computer virus that\u2019s striking down hackers everywhere, he races along the neon-lit streets on a search-and-destroy mission for the shadowy virtual villain threatening to bring about infocalypse. Snow Crash is a mind-altering romp through a future America so bizarre, so outrageous\u2026you\u2019ll recognize it immediately.\",\"books:isbn\":\"0553380958\",\"books:author\":\"http:\/\/samples.ogp.me\/344562145628374\"}",
};
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/me/objects/books.book"
                                      parameters:params
                                      HTTPMethod:@"POST"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
Bundle params = new Bundle();
params.putString("object", "{\"fb:app_id\":\"302184056577324\",\"og:type\":\"books.book\",\"og:url\":\"Put your own URL to the object here\",\"og:title\":\"Snow Crash\",\"og:image\":\"http:\/\/en.wikipedia.org\/wiki\/File:Snowcrash.jpg\",\"og:description\":\"In reality, Hiro Protagonist delivers pizza for Uncle Enzo\u2019s CosoNostra Pizza Inc., but in the Metaverse he\u2019s a warrior prince. Plunging headlong into the enigma of a new computer virus that\u2019s striking down hackers everywhere, he races along the neon-lit streets on a search-and-destroy mission for the shadowy virtual villain threatening to bring about infocalypse. Snow Crash is a mind-altering romp through a future America so bizarre, so outrageous\u2026you\u2019ll recognize it immediately.\",\"books:isbn\":\"0553380958\",\"books:author\":\"http:\/\/samples.ogp.me\/344562145628374\"}");
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/me/objects/books.book",
    params,
    HttpMethod.POST,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'POST',
  '/me/objects/books.book',
  array (
    'object' => '{"fb:app_id":"302184056577324","og:type":"books.book","og:url":"Put your own URL to the object here","og:title":"Snow Crash","og:image":"http:\\/\\/en.wikipedia.org\\/wiki\\/File:Snowcrash.jpg","og:description":"In reality, Hiro Protagonist delivers pizza for Uncle Enzo\\u2019s CosoNostra Pizza Inc., but in the Metaverse he\\u2019s a warrior prince. Plunging headlong into the enigma of a new computer virus that\\u2019s striking down hackers everywhere, he races along the neon-lit streets on a search-and-destroy mission for the shadowy virtual villain threatening to bring about infocalypse. Snow Crash is a mind-altering romp through a future America so bizarre, so outrageous\\u2026you\\u2019ll recognize it immediately.","books:isbn":"0553380958","books:author":"http:\\/\\/samples.ogp.me\\/344562145628374"}',
  )
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
POST /v2.10/me/objects/books.book HTTP/1.1
Host: graph.facebook.com

object=%7B%22fb%3Aapp_id%22%3A%22302184056577324%22%2C%22og%3Atype%22%3A%22books.book%22%2C%22og%3Aurl%22%3A%22Put+your+own+URL+to+the+object+here%22%2C%22og%3Atitle%22%3A%22Snow+Crash%22%2C%22og%3Aimage%22%3A%22http%3A%5C%2F%5C%2Fen.wikipedia.org%5C%2Fwiki%5C%2FFile%3ASnowcrash.jpg%22%2C%22og%3Adescription%22%3A%22In+reality%2C+Hiro+Protagonist+delivers+pizza+for+Uncle+Enzo%5Cu2019s+CosoNostra+Pizza+Inc.%2C+but+in+the+Metaverse+he%5Cu2019s+a+warrior+prince.+Plunging+headlong+into+the+enigma+of+a+new+computer+virus+that%5Cu2019s+striking+down+hackers+everywhere%2C+he+races+along+the+neon-lit+streets+on+a+search-and-destroy+mission+for+the+shadowy+virtual+villain+threatening+to+bring+about+infocalypse.+Snow+Crash+is+a+mind-altering+romp+through+a+future+America+so+bizarre%2C+so+outrageous%5Cu2026you%5Cu2019ll+recognize+it+immediately.%22%2C%22books%3Aisbn%22%3A%220553380958%22%2C%22books%3Aauthor%22%3A%22http%3A%5C%2F%5C%2Fsamples.ogp.me%5C%2F344562145628374%22%7D
curl -X POST \
     -d "object=%7B%22fb%3Aapp_id%22%3A%22302184056577324%22%2C%22og%3Atype%22%3A%22books.book%22%2C%22og%3Aurl%22%3A%22Put+your+own+URL+to+the+object+here%22%2C%22og%3Atitle%22%3A%22Snow+Crash%22%2C%22og%3Aimage%22%3A%22http%3A%5C%2F%5C%2Fen.wikipedia.org%5C%2Fwiki%5C%2FFile%3ASnowcrash.jpg%22%2C%22og%3Adescription%22%3A%22In+reality%2C+Hiro+Protagonist+delivers+pizza+for+Uncle+Enzo%5Cu2019s+CosoNostra+Pizza+Inc.%2C+but+in+the+Metaverse+he%5Cu2019s+a+warrior+prince.+Plunging+headlong+into+the+enigma+of+a+new+computer+virus+that%5Cu2019s+striking+down+hackers+everywhere%2C+he+races+along+the+neon-lit+streets+on+a+search-and-destroy+mission+for+the+shadowy+virtual+villain+threatening+to+bring+about+infocalypse.+Snow+Crash+is+a+mind-altering+romp+through+a+future+America+so+bizarre%2C+so+outrageous%5Cu2026you%5Cu2019ll+recognize+it+immediately.%22%2C%22books%3Aisbn%22%3A%220553380958%22%2C%22books%3Aauthor%22%3A%22http%3A%5C%2F%5C%2Fsamples.ogp.me%5C%2F344562145628374%22%7D" \
        https://graph.facebook.com/v2.10/me/objects/books.book
Read
/* make the API call */
FB.api(
    "/me/objects/books.book",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/me/objects/books.book"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/me/objects/books.book",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '/me/objects/books.book'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
GET /v2.10/me/objects/books.book HTTP/1.1
Host: graph.facebook.com
curl https://graph.facebook.com/v2.10/me/objects/books.book
Update
/* make the API call */
FB.api(
    "/id_from_create_call",
    "POST",
    {
        "object": "{\"fb:app_id\":\"302184056577324\",\"og:type\":\"books.book\",\"og:url\":\"Put your own URL to the object here\",\"og:title\":\"Snow Crash\",\"og:image\":\"http:\\\/\\\/en.wikipedia.org\\\/wiki\\\/File:Snowcrash.jpg\",\"og:description\":\"In reality, Hiro Protagonist delivers pizza for Uncle Enzo\\u2019s CosoNostra Pizza Inc., but in the Metaverse he\\u2019s a warrior prince. Plunging headlong into the enigma of a new computer virus that\\u2019s striking down hackers everywhere, he races along the neon-lit streets on a search-and-destroy mission for the shadowy virtual villain threatening to bring about infocalypse. Snow Crash is a mind-altering romp through a future America so bizarre, so outrageous\\u2026you\\u2019ll recognize it immediately.\",\"books:isbn\":\"0553380958\",\"books:author\":\"http:\\\/\\\/samples.ogp.me\\\/344562145628374\"}"
    },
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
NSDictionary *params = @{
  @"object": @"{\"fb:app_id\":\"302184056577324\",\"og:type\":\"books.book\",\"og:url\":\"Put your own URL to the object here\",\"og:title\":\"Snow Crash\",\"og:image\":\"http:\/\/en.wikipedia.org\/wiki\/File:Snowcrash.jpg\",\"og:description\":\"In reality, Hiro Protagonist delivers pizza for Uncle Enzo\u2019s CosoNostra Pizza Inc., but in the Metaverse he\u2019s a warrior prince. Plunging headlong into the enigma of a new computer virus that\u2019s striking down hackers everywhere, he races along the neon-lit streets on a search-and-destroy mission for the shadowy virtual villain threatening to bring about infocalypse. Snow Crash is a mind-altering romp through a future America so bizarre, so outrageous\u2026you\u2019ll recognize it immediately.\",\"books:isbn\":\"0553380958\",\"books:author\":\"http:\/\/samples.ogp.me\/344562145628374\"}",
};
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/id_from_create_call"
                                      parameters:params
                                      HTTPMethod:@"POST"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
Bundle params = new Bundle();
params.putString("object", "{\"fb:app_id\":\"302184056577324\",\"og:type\":\"books.book\",\"og:url\":\"Put your own URL to the object here\",\"og:title\":\"Snow Crash\",\"og:image\":\"http:\/\/en.wikipedia.org\/wiki\/File:Snowcrash.jpg\",\"og:description\":\"In reality, Hiro Protagonist delivers pizza for Uncle Enzo\u2019s CosoNostra Pizza Inc., but in the Metaverse he\u2019s a warrior prince. Plunging headlong into the enigma of a new computer virus that\u2019s striking down hackers everywhere, he races along the neon-lit streets on a search-and-destroy mission for the shadowy virtual villain threatening to bring about infocalypse. Snow Crash is a mind-altering romp through a future America so bizarre, so outrageous\u2026you\u2019ll recognize it immediately.\",\"books:isbn\":\"0553380958\",\"books:author\":\"http:\/\/samples.ogp.me\/344562145628374\"}");
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/id_from_create_call",
    params,
    HttpMethod.POST,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'POST',
  '/id_from_create_call',
  array (
    'object' => '{"fb:app_id":"302184056577324","og:type":"books.book","og:url":"Put your own URL to the object here","og:title":"Snow Crash","og:image":"http:\\/\\/en.wikipedia.org\\/wiki\\/File:Snowcrash.jpg","og:description":"In reality, Hiro Protagonist delivers pizza for Uncle Enzo\\u2019s CosoNostra Pizza Inc., but in the Metaverse he\\u2019s a warrior prince. Plunging headlong into the enigma of a new computer virus that\\u2019s striking down hackers everywhere, he races along the neon-lit streets on a search-and-destroy mission for the shadowy virtual villain threatening to bring about infocalypse. Snow Crash is a mind-altering romp through a future America so bizarre, so outrageous\\u2026you\\u2019ll recognize it immediately.","books:isbn":"0553380958","books:author":"http:\\/\\/samples.ogp.me\\/344562145628374"}',
  )
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
POST /v2.10/id_from_create_call HTTP/1.1
Host: graph.facebook.com

object=%7B%22fb%3Aapp_id%22%3A%22302184056577324%22%2C%22og%3Atype%22%3A%22books.book%22%2C%22og%3Aurl%22%3A%22Put+your+own+URL+to+the+object+here%22%2C%22og%3Atitle%22%3A%22Snow+Crash%22%2C%22og%3Aimage%22%3A%22http%3A%5C%2F%5C%2Fen.wikipedia.org%5C%2Fwiki%5C%2FFile%3ASnowcrash.jpg%22%2C%22og%3Adescription%22%3A%22In+reality%2C+Hiro+Protagonist+delivers+pizza+for+Uncle+Enzo%5Cu2019s+CosoNostra+Pizza+Inc.%2C+but+in+the+Metaverse+he%5Cu2019s+a+warrior+prince.+Plunging+headlong+into+the+enigma+of+a+new+computer+virus+that%5Cu2019s+striking+down+hackers+everywhere%2C+he+races+along+the+neon-lit+streets+on+a+search-and-destroy+mission+for+the+shadowy+virtual+villain+threatening+to+bring+about+infocalypse.+Snow+Crash+is+a+mind-altering+romp+through+a+future+America+so+bizarre%2C+so+outrageous%5Cu2026you%5Cu2019ll+recognize+it+immediately.%22%2C%22books%3Aisbn%22%3A%220553380958%22%2C%22books%3Aauthor%22%3A%22http%3A%5C%2F%5C%2Fsamples.ogp.me%5C%2F344562145628374%22%7D
curl -X POST \
     -d "object=%7B%22fb%3Aapp_id%22%3A%22302184056577324%22%2C%22og%3Atype%22%3A%22books.book%22%2C%22og%3Aurl%22%3A%22Put+your+own+URL+to+the+object+here%22%2C%22og%3Atitle%22%3A%22Snow+Crash%22%2C%22og%3Aimage%22%3A%22http%3A%5C%2F%5C%2Fen.wikipedia.org%5C%2Fwiki%5C%2FFile%3ASnowcrash.jpg%22%2C%22og%3Adescription%22%3A%22In+reality%2C+Hiro+Protagonist+delivers+pizza+for+Uncle+Enzo%5Cu2019s+CosoNostra+Pizza+Inc.%2C+but+in+the+Metaverse+he%5Cu2019s+a+warrior+prince.+Plunging+headlong+into+the+enigma+of+a+new+computer+virus+that%5Cu2019s+striking+down+hackers+everywhere%2C+he+races+along+the+neon-lit+streets+on+a+search-and-destroy+mission+for+the+shadowy+virtual+villain+threatening+to+bring+about+infocalypse.+Snow+Crash+is+a+mind-altering+romp+through+a+future+America+so+bizarre%2C+so+outrageous%5Cu2026you%5Cu2019ll+recognize+it+immediately.%22%2C%22books%3Aisbn%22%3A%220553380958%22%2C%22books%3Aauthor%22%3A%22http%3A%5C%2F%5C%2Fsamples.ogp.me%5C%2F344562145628374%22%7D" \
        https://graph.facebook.com/v2.10/id_from_create_call
Delete
/* make the API call */
FB.api(
    "/id_from_create_call",
    "DELETE",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/id_from_create_call"
                                      parameters:params
                                      HTTPMethod:@"DELETE"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/id_from_create_call",
    null,
    HttpMethod.DELETE,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'DELETE',
  '/id_from_create_call'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
DELETE /v2.10/id_from_create_call HTTP/1.1
Host: graph.facebook.com
curl -X DELETE \
     -d "" \
        https://graph.facebook.com/v2.10/id_from_create_call
Properties
NameTypeDescription
FIELDS
books:authorArray<Reference>An array of references to the objects representing the authors of the book
books:genreArray<Reference>An array of references to the objects representing the genres of the book
books:initial_release_dateDateTimeA time representing when the book was initially released
books:isbnStringThe International Standard Book Number (ISBN) for the book
books:languageLocaleThe language of the book
books:language:localeEnumThe locale of the book's language, in the format language_TERRITORY. The default is en_US
books:language:alternateArray<Enum>An array of locales of other languages that the book is available in
books:page_countIntegerThe number of pages in the book
books:ratingRatingThe rating of the book
books:rating:valueFloatA rating for this book; a positive numeric value
books:rating:scaleIntegerThe maximum of the scale for rating this book; a positive integer
books:rating:normalized_valueFloatDeprecated
books:release_dateDateTimeA time representing when the book was released
books:sampleURLA URL of a sample of the book
INHERITED FIELDS
al:androidArray<Struct>
al:android:urlAppsite
al:android:packageAndroidPath
al:android:app_nameString
al:android:classString
al:iosArray<IosApplink>
al:ios:urlAppsite
al:ios:app_store_idInteger
al:ios:app_nameString
al:ipadArray<IosApplink>
al:ipad:urlAppsite
al:ipad:app_store_idInteger
al:ipad:app_nameString
al:iphoneArray<IosApplink>
al:iphone:urlAppsite
al:iphone:app_store_idInteger
al:iphone:app_nameString
al:webStruct
al:web:urlURL
al:web:should_fallbackBoolean
al:windowsArray<Struct>
al:windows:urlAppsite
al:windows:package_family_nameString
al:windows:app_idGuid
al:windows:app_nameString
al:windows_phoneArray<Struct>
al:windows_phone:urlAppsite
al:windows_phone:app_idGuid
al:windows_phone:app_nameString
al:windows_universalArray<Struct>
al:windows_universal:urlAppsite
al:windows_universal:package_family_nameString
al:windows_universal:app_idGuid
al:windows_universal:app_nameString
fb:adminsArray<Facebook ID>An array of the Facebook IDs of the app's administrators
fb:app_idFacebook IDA Facebook app ID
fb:pagesArray<Facebook ID>
fb:profile_idProfileThe Facebook ID of a user that can be followed
og:audioArray<Audio>
og:audio:urlStringThe URL of an audio resource associated with the object
og:audio:secure_urlURLAn alternate URL to use if an audio resource requires HTTPS
og:audio:typeStringThe MIME type of an audio resource associated with the object
og:descriptionStringA short description of the object
og:determinerEnumThe word that appears before the object's title in a sentence. This is an list of words from 'a', 'an', 'the', ' "" ', or 'auto'. If 'auto' is chosen, the consumer of the object will chose between 'a' or 'an'. The default is the blank, "".
og:imageArray<Image>
og:image:urlURLThe URL of an image resource associated with the object
og:image:secure_urlURLAn alternate URL to use if an image resource requires HTTPS
og:image:typeStringThe MIME type of an image resource
og:image:widthIntegerThe width of an image resource in pixels
og:image:heightIntegerThe height of an image resource in pixels
og:image:altString
og:image:user_generatedBoolean
og:localeLocaleNot supported
og:locale:localeEnum
og:locale:alternateArray<Enum>Not supported
og:restrictionsRestrictions
og:restrictions:countryStruct
og:restrictions:country:allowedArray<Country>A whitelist country restriction for the object using a two-letter country code, such as 'US' (may not be used with og:restrictions:country:disallowed)
og:restrictions:country:disallowedArray<Country>A blacklist country restriction for the object using a two-letter country code, such as 'US' (may not be used with og:restrictions:country:allowed)
og:restrictions:ageAgeAn age restriction for the object, such as '13+', '18+'
og:restrictions:contentArray<Content>A content restriction for the object, such as 'alcohol' (the only currently supported value)
og:rich_attachmentBoolean
og:see_alsoArray<URL>An array of URLs of related resources
og:site_nameStringNot supported
og:titleStringThe title of the object as it should appear in the graph
og:ttlInteger
og:typeStringThe type of the object, such as 'article'
og:updated_timeDateTimeThe time when the object was last updated
og:urlURLThe canonical URL of the object, used as its ID in the graph
og:videoArray<Video>
og:video:urlURLThe URL of a video resource associated with the object
og:video:secure_urlURLAn alternate URL to use if a video resource requires HTTPS
og:video:typeStringThe MIME type of a video resource associated with the object
og:video:widthIntegerThe width of a video resource associated with the object in pixels
og:video:heightIntegerThe height of a video resource associated with the object in pixels