Product catalogs owned by this business.
GET /v21.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 |
---|---|
200 | Permissions error |
100 | Invalid parameter |
190 | Invalid OAuth 2.0 Access Token |
104 | Incorrect signature |
owned_product_catalogs
edge from the following paths: Parameter | Description |
---|---|
additional_vertical_option enum {LOCAL_DA_CATALOG, LOCAL_PRODUCTS} | Additional catalog configurations that does not introduce either new verticals or subverticals |
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, commerce, destinations, flights, generic, home_listings, hotels, jobs, local_service_businesses, offer_items, offline_commerce, transactable_items, vehicles} | Default value: commerce The catalog's industry or vertical, such as |
id
in the return type.id
: numeric string, Error | Description |
---|---|
100 | Invalid parameter |
2310068 | Cannot create a catalog segment from a non CPAS compliant parent catalog |