AtlasFBConversionEventConversionPaths
GET /v9.0/{atlas-fb-conversion-event-id}/conversion_paths 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(
'/{atlas-fb-conversion-event-id}/conversion_paths',
'{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(
"/{atlas-fb-conversion-event-id}/conversion_paths",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{atlas-fb-conversion-event-id}/conversion_paths",
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:@"/{atlas-fb-conversion-event-id}/conversion_paths"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
Parameter | Description |
---|---|
click_lookback_window int64 | click_lookback_window Required |
date_range JSON object | date_range |
limit int64 | limit |
metric_context JSON object | metric_context |
time_period enum {all_available, all_dates, custom, date_range, fifteen_days, last_fourteen_days, last_hundred_fourty_four_hours, last_month, last_ninety_days, last_quarter, last_seven_days, last_sixty_days, last_thirty_days, last_twenty_four_hours, last_year, month_to_date, quarter_to_date, seven_days, thirty_days, this_month_whole_days, today, week_to_date, year_to_date, yesterday} | time_period Required |
view_lookback_window int64 | view_lookback_window Required |
Reading from this edge will return a JSON formatted result:
{ "
data
": [], "paging
": {} }
data
paging
Error | Description |
---|---|
100 | Invalid parameter |