Marketing API Version

Vehicle

Reading

Represents a listing for vehicle in a catalog

Example

Graph API Explorer
GET /v2.12/{vehicle-id} 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(
    '/{vehicle-id}',
    '{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(
    "/{vehicle-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{vehicle-id}",
    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:@"/{vehicle-id}"
                                      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

This endpoint doesn't have any parameters.

Fields

FieldDescription
id
numeric string

Id

address
VehicleLocationAddressData

Address

applinks

Applinks

availability
enum

Availability

body_style
enum

BodyStyle

condition
enum

Condition

currency
string

Currency

dealer_id
string

DealerId

dealer_name
string

DealerName

dealer_phone
string

DealerPhone

description
string

Description

drivetrain
enum

Drivetrain

exterior_color
string

ExteriorColor

fb_page_id

FbPageId

fuel_type
enum

FuelType

images
list<string>

Images

interior_color
string

InteriorColor

make
string

Make

mileage
VehicleCatalogItemMileageData

Mileage

model
string

Model

price
string

Price

sale_currency
string

SaleCurrency

sale_price
string

SalePrice

state_of_vehicle
enum

StateOfVehicle

title
string

Title

transmission
enum

Transmission

trim
string

Trim

url
string

Url

vehicle_id
string

VehicleId

vehicle_registration_plate
string

VehicleRegistrationPlate

vin
string

Vin

year
unsigned int32

Year

Edges

No edges

Validation Rules

ErrorDescription
100Invalid parameter

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.