그래프 API 버전

    Product Group Products

    읽기

    Products for a given product group

    Graph API Explorer
    GET /v21.0/{product-group-id}/products 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(
        '/{product-group-id}/products',
        '{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(
        "/{product-group-id}/products",
        function (response) {
          if (response && !response.error) {
            /* handle the result */
          }
        }
    );
    /* make the API call */
    new GraphRequest(
        AccessToken.getCurrentAccessToken(),
        "/{product-group-id}/products",
        null,
        HttpMethod.GET,
        new GraphRequest.Callback() {
            public void onCompleted(GraphResponse response) {
                /* handle the result */
            }
        }
    ).executeAsync();
    /* make the API call */
    FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                                   initWithGraphPath:@"/{product-group-id}/products"
                                          parameters:params
                                          HTTPMethod:@"GET"];
    [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                          id result,
                                          NSError *error) {
        // Handle the result
    }];
    그래프 API를 사용하는 방법을 알아보려면 그래프 API 사용 가이드를 읽어보세요.

    매개변수

    이 엔드포인트는 매개변수가 없습니다.

    필드

    이 에지로부터 읽는 경우 JSON 형식의 결과를 반환합니다:

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

    data

    ProductItem 노드 리스트.

    paging

    페이지 매김에 대한 자세한 정보는 그래프 API 가이드를 확인하세요.

    오류 코드

    오류설명
    100Invalid parameter
    200Permissions error
    190Invalid OAuth 2.0 Access Token

    만들기

    다음 경로에서 products 에지에 POST 요청을 만들 수 있습니다:
    이 에지에 게시할 때 a ProductItem이(가) 생성됩니다.

    매개변수

    매개변수설명
    additional_image_urls
    list<URL>

    Additional product image URLs

    additional_variant_attributes
    JSON object {string : string}

    Additional attributes to distinguish the product in its variant group (ex: {"Scent" : "Fruity", "Style" : "Classic"})

    android_app_name
    string

    The name of the app (suitable for display)

    android_class
    string

    A fully-qualified Activity class name for intent generation

    android_package
    string

    A fully-qualified package name for intent generation

    android_url
    string

    A custom scheme for the Android app

    availability
    enum{in stock, out of stock, preorder, available for order, discontinued, pending, mark_as_sold}
    기본 값: in stock

    Availability of the product item

    brand
    string

    Brand of the product item

    category
    string

    Category of the product item. This is a required field

    checkout_url
    URL

    URL to add product item to cart and directly to checkout

    color
    string

    Color of the product item

    commerce_tax_category
    enum{FB_ANIMAL, FB_ANIMAL_SUPP, FB_APRL, FB_APRL_ACCESSORIES, FB_APRL_ATHL_UNIF, FB_APRL_CASES, FB_APRL_CLOTHING, FB_APRL_COSTUME, FB_APRL_CSTM, FB_APRL_FORMAL, FB_APRL_HANDBAG, FB_APRL_JEWELRY, FB_APRL_SHOE, FB_APRL_SHOE_ACC, FB_APRL_SWIM, FB_APRL_SWIM_CHIL, FB_APRL_SWIM_CVR, FB_ARTS, FB_ARTS_HOBBY, FB_ARTS_PARTY, FB_ARTS_PARTY_GIFT_CARD, FB_ARTS_TICKET, FB_BABY, FB_BABY_BATH, FB_BABY_BLANKET, FB_BABY_DIAPER, FB_BABY_GIFT_SET, FB_BABY_HEALTH, FB_BABY_NURSING, FB_BABY_POTTY_TRN, FB_BABY_SAFE, FB_BABY_TOYS, FB_BABY_TRANSPORT, FB_BABY_TRANSPORT_ACC, FB_BAGS, FB_BAGS_BKPK, FB_BAGS_BOXES, FB_BAGS_BRFCS, FB_BAGS_CSMT_BAG, FB_BAGS_DFFL, FB_BAGS_DIPR, FB_BAGS_FNNY, FB_BAGS_GRMT, FB_BAGS_LUG_ACC, FB_BAGS_LUGG, FB_BAGS_MSGR, FB_BAGS_TOTE, FB_BAGS_TRN_CAS, FB_BLDG, FB_BLDG_ACC, FB_BLDG_CNSMB, FB_BLDG_FENCE, FB_BLDG_FUEL_TNK, FB_BLDG_HT_VNT, FB_BLDG_LOCK, FB_BLDG_MATRL, FB_BLDG_PLMB, FB_BLDG_PUMP, FB_BLDG_PWRS, FB_BLDG_S_ENG, FB_BLDG_STR_TANK, FB_BLDG_TL_ACC, FB_BLDG_TOOL, FB_BUSIND, FB_BUSIND_ADVERTISING, FB_BUSIND_AGRICULTURE, FB_BUSIND_AUTOMATION, FB_BUSIND_HEAVY_MACH, FB_BUSIND_LAB, FB_BUSIND_MEDICAL, FB_BUSIND_RETAIL, FB_BUSIND_SANITARY_CT, FB_BUSIND_SIGN, FB_BUSIND_STORAGE, FB_BUSIND_STORAGE_ACC, FB_BUSIND_WORK_GEAR, FB_CAMERA_ACC, FB_CAMERA_CAMERA, FB_CAMERA_OPTIC, FB_CAMERA_OPTICS, FB_CAMERA_PHOTO, FB_ELEC, FB_ELEC_ACC, FB_ELEC_ARCDADE, FB_ELEC_AUDIO, FB_ELEC_CIRCUIT, FB_ELEC_COMM, FB_ELEC_COMPUTER, FB_ELEC_GPS_ACC, FB_ELEC_GPS_NAV, FB_ELEC_GPS_TRK, FB_ELEC_MARINE, FB_ELEC_NETWORK, FB_ELEC_PART, FB_ELEC_PRINT, FB_ELEC_RADAR, FB_ELEC_SFTWR, FB_ELEC_SPEED_RDR, FB_ELEC_TELEVISION, FB_ELEC_TOLL, FB_ELEC_VID_GM_ACC, FB_ELEC_VID_GM_CNSL, FB_ELEC_VIDEO, FB_FOOD, FB_FURN, FB_FURN_BABY, FB_FURN_BENCH, FB_FURN_CART, FB_FURN_CHAIR, FB_FURN_CHAIR_ACC, FB_FURN_DIVIDE, FB_FURN_DIVIDE_ACC, FB_FURN_ENT_CTR, FB_FURN_FUTN, FB_FURN_FUTN_PAD, FB_FURN_OFFICE, FB_FURN_OFFICE_ACC, FB_FURN_OTTO, FB_FURN_OUTDOOR, FB_FURN_OUTDOOR_ACC, FB_FURN_SETS, FB_FURN_SHELVE_ACC, FB_FURN_SHLF, FB_FURN_SOFA, FB_FURN_SOFA_ACC, FB_FURN_STORAGE, FB_FURN_TABL, FB_FURN_TABL_ACC, FB_GENERIC_TAXABLE, FB_HLTH, FB_HLTH_HLTH, FB_HLTH_JWL_CR, FB_HLTH_LILP_BLM, FB_HLTH_LTN_SPF, FB_HLTH_PRSL_CR, FB_HLTH_SKN_CR, FB_HMGN, FB_HMGN_BATH, FB_HMGN_DCOR, FB_HMGN_EMGY, FB_HMGN_FPLC, FB_HMGN_FPLC_ACC, FB_HMGN_GS_SFT, FB_HMGN_HS_ACC, FB_HMGN_HS_APP, FB_HMGN_HS_SPL, FB_HMGN_KTCN, FB_HMGN_LAWN, FB_HMGN_LGHT, FB_HMGN_LINN, FB_HMGN_LT_ACC, FB_HMGN_OTDR, FB_HMGN_POOL, FB_HMGN_SCTY, FB_HMGN_SMK_ACC, FB_HMGN_UMBR, FB_HMGN_UMBR_ACC, FB_MDIA, FB_MDIA_BOOK, FB_MDIA_DVDS, FB_MDIA_MAG, FB_MDIA_MANL, FB_MDIA_MUSC, FB_MDIA_PRJ_PLN, FB_MDIA_SHT_MUS, FB_OFFC, FB_OFFC_BKAC, FB_OFFC_CRTS, FB_OFFC_DSKP, FB_OFFC_EQIP, FB_OFFC_FLNG, FB_OFFC_GNRL, FB_OFFC_INSTM, FB_OFFC_LP_DSK, FB_OFFC_MATS, FB_OFFC_NM_PLT, FB_OFFC_PPR_HNDL, FB_OFFC_PRSNT_SPL, FB_OFFC_SEALR, FB_OFFC_SHIP_SPL, FB_RLGN, FB_RLGN_CMNY, FB_RLGN_ITEM, FB_RLGN_WEDD, FB_SFTWR, FB_SFWR_CMPTR, FB_SFWR_DGTL_GD, FB_SFWR_GAME, FB_SHIPPING, FB_SPOR, FB_SPORT_ATHL, FB_SPORT_ATHL_CLTH, FB_SPORT_ATHL_SHOE, FB_SPORT_ATHL_SPRT, FB_SPORT_EXRCS, FB_SPORT_INDR_GM, FB_SPORT_OTDR_GM, FB_TOYS, FB_TOYS_EQIP, FB_TOYS_GAME, FB_TOYS_PZZL, FB_TOYS_TMRS, FB_TOYS_TOYS, FB_VEHI, FB_VEHI_PART}

    commerce_tax_category

    condition
    enum{new, refurbished, used, used_like_new, used_good, used_fair, cpo, open_box_new}
    기본 값: new

    The condition of the product item

    currency
    ISO 4217 Currency Code

    Currency for the product item

    필수
    custom_data
    dictionary { string : <string> }

    TBD

    custom_label_0
    string

    An optional custom label to associate with the product item. Max size: 100

    custom_label_1
    string

    An optional custom label to associate with the product item. Max size: 100

    custom_label_2
    string

    An optional custom label to associate with the product item. Max size: 100

    custom_label_3
    string

    An optional custom label to associate with the product item. Max size: 100

    custom_label_4
    string

    An optional custom label to associate with the product item. Max size: 100

    custom_number_0
    int64

    custom_number_0

    custom_number_1
    int64

    custom_number_1

    custom_number_2
    int64

    custom_number_2

    custom_number_3
    int64

    custom_number_3

    custom_number_4
    int64

    custom_number_4

    description
    string

    Description of the product item. Max size: 5000

    이모티콘 지원
    expiration_date
    string

    Item's expiration date (YYYY-MM-DD)

    fb_product_category
    string

    The facebook product category specified by the seller.

    gender
    enum{female, male, unisex}

    Gender the product item is targeted towards

    gtin
    string

    Global trade ID of the product item

    image_url
    URI

    URL of the product image

    필수
    inventory
    int64

    Inventory count for the product item

    ios_app_name
    string

    The name of the app (suitable for display)

    ios_app_store_id
    int64

    The app ID for the App Store

    ios_url
    string

    A custom scheme for the iOS app

    ipad_app_name
    string

    The name of the app (suitable for display)

    ipad_app_store_id
    int64

    The app ID for the App Store

    ipad_url
    string

    A custom scheme for the iPhone app

    iphone_app_name
    string

    The name of the app (suitable for display)

    iphone_app_store_id
    int64

    The app ID for the App Store

    iphone_url
    string

    A custom scheme for the iPhone app

    launch_date
    string

    launch_date

    manufacturer_part_number
    string

    Manufacturer's ID for the product item

    marked_for_product_launch
    enum{default, marked, not_marked}

    marked_for_product_launch

    material
    string

    Material of the product item
    Max size: 200

    mobile_link
    URI

    Link to a mobile-optimized external product page

    name
    string

    Name/title of the product item

    필수이모티콘 지원
    ordering_index
    int64

    Index used for ordering items within a group

    pattern
    string

    Pattern of the product item

    price
    int64

    Price of the item with 2 digits added for cents (ex: use "100" for 1 or "599" for 5.99)

    필수
    product_priority_0
    float

    product_priority_0

    product_priority_1
    float

    product_priority_1

    product_priority_2
    float

    product_priority_2

    product_priority_3
    float

    product_priority_3

    product_priority_4
    float

    product_priority_4

    product_type
    string

    Retailer defined category of the product item. Max size: 750

    quantity_to_sell_on_facebook
    int64

    quantity_to_sell_on_facebook

    retailer_id
    string

    A unique identifier for this item (which can be a variant for a product)

    필수
    return_policy_days
    int64

    Return Policy Days

    sale_price
    int64

    Sale price of the item with 2 digits added for cents (ex: use "100" for 1 or "599" for 5.99)

    sale_price_end_date
    datetime

    Date when the sale price ends

    sale_price_start_date
    datetime

    Date when the sale price starts

    short_description
    string

    A brief description of the product

    size
    string

    Size of the product item

    start_date
    string

    Date when the product started to exist

    url
    URI

    URL of the product item

    visibility
    enum{staging, published}
    기본 값: published

    Visibility of the product item

    windows_phone_app_id
    string

    The app ID (a GUID) for app store

    windows_phone_app_name
    string

    The name of the app (suitable for display)

    windows_phone_url
    string

    A custom scheme for the Windows Phone app

    반환 유형

    이 엔드포인트는 기록 후 읽기를 지원하며 반환 유형에서 id로 표시되는 노드를 읽습니다.
    Struct {
    id: numeric string,
    }

    오류 코드

    오류설명
    100Invalid parameter
    368The action attempted has been deemed abusive or is otherwise disallowed
    10800Duplicate retailer_id when attempting to create a store collection

    업데이트 중

    이 엔드포인트에서 수행할 수 없는 작업입니다.

    삭제 중

    이 엔드포인트에서 수행할 수 없는 작업입니다.