An action representing someone quoting from a book.
FB.api(
'me/books.quotes',
'post',
{
body: "Some Arbitrary String",
book: "http://samples.ogp.me/344468272304428"
},
function(response) {
// handle the response
}
);
FB.api(
'me/books.quotes',
'get',
function(response) {
// handle the response
}
);
FB.api(
'{id_from_create_call}',
'post',
{
body: "Some Arbitrary String",
book: "http://samples.ogp.me/344468272304428"
},
function(response) {
// handle the response
}
);
FB.api(
'{id_from_create_call}',
'delete',
function(response) {
// handle the response
}
);
NSMutableDictionary<FBGraphObject> *action = [FBGraphObject graphObject];
action[@"body"] = @"Some Arbitrary String";
action[@"book"] = @"http://samples.ogp.me/344468272304428";
[FBRequestConnection startForPostWithGraphPath:@"me/books.quotes"
graphObject:action
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
// handle the result
}];
[FBRequestConnection startWithGraphPath:@"me/books.quotes"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
// handle the result
}];
NSMutableDictionary<FBGraphObject> *action = [FBGraphObject graphObject];
action[@"body"] = @"Some Arbitrary String";
action[@"book"] = @"http://samples.ogp.me/344468272304428";
[FBRequestConnection startForPostWithGraphPath:@"{id_from_create_call}"
graphObject:action
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
// handle the result
}];
[FBRequestConnection startWithGraphPath:@"{id_from_create_call}"
parameters:nil
HTTPMethod:@"DELETE"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
// handle the result
}];
Bundle params = new Bundle();
params.putString("body", "Some Arbitrary String");
params.putString("book", "http://samples.ogp.me/344468272304428");
Request request = new Request(
Session.getActiveSession(),
"me/books.quotes",
params,
HttpMethod.POST
);
Response response = request.executeAndWait();
// handle the response
Request request = new Request(
Session.getActiveSession(),
"me/books.quotes",
null,
HttpMethod.GET
);
Response response = request.executeAndWait();
// handle the response
Bundle params = new Bundle();
params.putString("body", "Some Arbitrary String");
params.putString("book", "http://samples.ogp.me/344468272304428");
Request request = new Request(
Session.getActiveSession(),
"{id_from_create_call}",
params,
HttpMethod.POST
);
Response response = request.executeAndWait();
// handle the response
Request request = new Request(
Session.getActiveSession(),
"{id_from_create_call}",
null,
HttpMethod.DELETE
);
Response response = request.executeAndWait();
// handle the response
$response = $facebook->api(
'me/books.quotes',
'POST',
array(
'body' => "Some Arbitrary String",
'book' => "http://samples.ogp.me/344468272304428"
)
);
// handle the response
$response = $facebook->api(
'me/books.quotes',
'GET'
);
// handle the response
$response = $facebook->api(
'{id_from_create_call}',
'POST',
array(
'body' => "Some Arbitrary String",
'book' => "http://samples.ogp.me/344468272304428"
)
);
// handle the response
$response = $facebook->api(
'/{id_from_create_call}',
'DELETE'
);
// handle the response
Name | Description |
---|---|
String | The text of the quotation |
start_time DateTime | The time that the user started |
end_time DateTime | The time that the user ended |
created_time DateTime | The time that the action was created |
expires_in Integer | The amount of time from the publish_time that the action will expire |
place Place | The place that the action took place |
tags Array<Profile> | Any other users that performed the action |
ref String | A <50 character string identifier for tracking and insights |
String | A message attached to this action |
no_feed_story Boolean | Do not post this action to the feed |
Boolean | The user is explicitly sharing this action |
Name | Description |
---|---|
id Quote | A Quote action id |
Name | Description |
---|---|
id Quote | A Quote action id |
Name | Description |
---|---|
String | The text of the quotation |
start_time DateTime | The time that the user started |
end_time DateTime | The time that the user ended |
publish_time DateTime | The time that the action was published |
place Place | The place that the action took place |
tags Array<Profile> | Any other users that performed the action |
image Array<ActionImage> | |
ref String | A <50 character string identifier for tracking and insights |
String | A message attached to this action |
no_feed_story Boolean | Do not post this action to the feed |
Name | Description |
---|---|
String | The text of the quotation |
end_time DateTime | The time that the user ended |
expires_in Integer | The amount of time from the publish_time that the action will expire |
place Place | The place that the action took place |
tags Array<Profile> | Any other users that performed the action |
String | A message attached to this action |
Name | Description |
---|---|
id Quote | A Quote action id |
Name | Description |
---|---|
id Quote | A Quote action id |
true
If not successful, returns an error JSON object {
"error":
{
"message":ERROR_MESSAGE,
"type":ERROR_TYPE,
"code":ERROR_CODE
}
}