Graph API Version

Business Unit Conversion Paths

Reading

BusinessUnitConversionPaths

Example

Graph API Explorer
GET /v5.0/{business-unit-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(
    '/{business-unit-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(
    "/{business-unit-id}/conversion_paths",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{business-unit-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:@"/{business-unit-id}/conversion_paths"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
If you want to learn how to use the Graph API, read our Using Graph API guide.

Parameters

ParameterDescription
click_lookback_window
int64

click_lookback_window

Required
date_range

date_range

fb_conversion_event_id
int64

fb_conversion_event_id

Required
limit
int64

limit

metric_context
JSON object

metric_context

business_unit_id
string

business_unit_id

active_pane
string

active_pane

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

Fields

Reading from this edge will return a JSON formatted result:

{ "data": [], "paging": {} }

data

A list of AtlasConversionPath nodes.

paging

For more details about pagination, see the Graph API guide.

Creating

You can't perform this operation on this endpoint.

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.