Currency

Contact

Account

Facebook XML Documentation

XML File Documentation – Facebook Format

Important information about variants:
In this file, each product size variant appears as a separate <item> entry. Variants (e.g., XS, S, M, L, XL) are grouped within a single model using the g:item_group_id field, and the variant size is passed in the g:size field.

Product Variant Structure

Each <item> element describes a single product variant (specific size). This means that for one model, there are several items in the file – one for each size.

The product name (title) contains size information at the end, which facilitates variant distinction in e-commerce systems.

Example of XML File Structure in Facebook Standard

Below is an example fragment of an XML file. The code is displayed in technical form and can be copied.

Grouping Variants

g:item_group_id – common product model identifier

g:id – unique item identifier (variant)

g:size – variant size (e.g., XS, S, M, L)

title – product name (contains size)

All variants of one model share the same g:item_group_id, but each variant has its own g:id, g:gtin, and g:size.

Identifiers – How to Best Map Products in Integration

For building connections and updating products in e-commerce systems, we recommend basing integration on the g:gtin and g:item_group_id fields.

g:gtin (EAN) – unique barcode assigned to a specific variant (size)
g:item_group_id – main product identifier (model)

The g:id field is a technical item identifier in the file (e.g., 2772-21231) and should not be used as the main key for mapping products.

Product Codes (MPN) and Variant Identification

g:mpn – variant code (usually contains the size)

g:brand – product brand

g:gtin – variant barcode (EAN)

If the integration requires an SKU or variant code, the g:mpn field is most often used, whereas g:gtin is recommended for unambiguous variant identification.

Prices and Availability

g:price – variant price

g:sale_price – sale price (if applicable)

g:availability – variant availability

g:quantity_to_sell_on_facebook – quantity available for the variant

g:status – item status in the file

Prices and availability are passed separately for each variant because each size constitutes a separate item in the file.

Images and Links

link – link to the product

g:image_link – main product image

g:additional_image_link – additional images (0+)

Product Description

The product description is located in the description field and may contain text and simple HTML formatting.

Dimension information may be included in the description, whereas the variant size always results from the g:size field.

Categories and Additional Attributes

g:product_type – internal product category

g:google_product_category – standard category

g:gender – attribute (e.g., female)

g:age_group – attribute (e.g., adult)

Technical Summary

In this file, each size variant is a separate item, and variants of one model are logically grouped.

1 size = 1 item g:size g:item_group_id EAN per variant price and availability per variant

SUBSCRIBE

Do you want to receive emails about new items Enter e-mail address

Immediate dispatch

Orders placed and paid for by 12:00 are dispatched the same day (applies to working days).

Next dispatch in::

hrs

mins

secs.

Zamknij