An action representing someone walking a course.
FB.api(
'me/fitness.walks',
'post',
{
course: "http://samples.ogp.me/136756249803614"
},
function(response) {
// handle the response
}
);
FB.api(
'me/fitness.walks',
'get',
function(response) {
// handle the response
}
);
FB.api(
'{id_from_create_call}',
'post',
{
course: "http://samples.ogp.me/136756249803614"
},
function(response) {
// handle the response
}
);
FB.api(
'{id_from_create_call}',
'delete',
function(response) {
// handle the response
}
);
NSMutableDictionary<FBGraphObject> *action = [FBGraphObject graphObject];
action[@"course"] = @"http://samples.ogp.me/136756249803614";
[FBRequestConnection startForPostWithGraphPath:@"me/fitness.walks"
graphObject:action
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
// handle the result
}];
[FBRequestConnection startWithGraphPath:@"me/fitness.walks"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
// handle the result
}];
NSMutableDictionary<FBGraphObject> *action = [FBGraphObject graphObject];
action[@"course"] = @"http://samples.ogp.me/136756249803614";
[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("course", "http://samples.ogp.me/136756249803614");
Request request = new Request(
Session.getActiveSession(),
"me/fitness.walks",
params,
HttpMethod.POST
);
Response response = request.executeAndWait();
// handle the response
Request request = new Request(
Session.getActiveSession(),
"me/fitness.walks",
null,
HttpMethod.GET
);
Response response = request.executeAndWait();
// handle the response
Bundle params = new Bundle();
params.putString("course", "http://samples.ogp.me/136756249803614");
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/fitness.walks',
'POST',
array(
'course' => "http://samples.ogp.me/136756249803614"
)
);
// handle the response
$response = $facebook->api(
'me/fitness.walks',
'GET'
);
// handle the response
$response = $facebook->api(
'{id_from_create_call}',
'POST',
array(
'course' => "http://samples.ogp.me/136756249803614"
)
);
// handle the response
$response = $facebook->api(
'/{id_from_create_call}',
'DELETE'
);
// handle the response
Name | Description |
---|---|
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 Walk | A Walk action id |
Name | Description |
---|---|
id Walk | A Walk action id |
Name | Description |
---|---|
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 |
---|---|
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 Walk | A Walk action id |
Name | Description |
---|---|
id Walk | A Walk action id |
true
If not successful, returns an error JSON object {
"error":
{
"message":ERROR_MESSAGE,
"type":ERROR_TYPE,
"code":ERROR_CODE
}
}