Product catalogs owned by this business.
GET /v18.0/{business-id}/owned_product_catalogs 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-id}/owned_product_catalogs',
'{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-id}/owned_product_catalogs",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{business-id}/owned_product_catalogs",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{business-id}/owned_product_catalogs"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
Reading from this edge will return a JSON formatted result:
{ "
data
": [], "paging
": {} }
data
paging
Error | Description |
---|---|
100 | Invalid parameter |
200 | Permissions error |
80009 | There have been too many calls to this Catalog account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting. |
owned_product_catalogs
edge from the following paths: Parameter | Description |
---|---|
catalog_segment_filter A JSON-encoded rule | Provide filter for catalog to create a catalog segment. |
da_display_settings Object | Dynamic Ads display settings. |
destination_catalog_settings JSON object | Destination catalog settings. |
flight_catalog_settings JSON object | Flight catalog settings. |
name UTF-8 encoded string | Name of the catalog. Required |
parent_catalog_id numeric string or integer | Parent catalog ID. |
partner_integration JSON object | Partner integration settings |
store_catalog_settings JSON object | Store catalog settings. |
vertical enum {adoptable_pets, bookable, commerce, destinations, flights, home_listings, hotels, jobs, local_delivery_shipping_profiles, local_service_businesses, offer_items, offline_commerce, ticketed_experiences, transactable_items, vehicles} | Default value: commerce The catalog's industry or vertical, such as |
id
in the return type.id
: numeric string, onsite_commerce_merchant
: Struct {id
: numeric string, Error | Description |
---|---|
100 | Invalid parameter |
2310019 | The business of this catalog is not onboarded to Collaborative Ads |