Graph API Version

Business Owned Businesses

Reading

The client businesses owned.

Example

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

ParameterDescription
client_user_id
UID

client_user_id

Fields

Reading from this edge will return a JSON formatted result:

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

data

A list of Business nodes.

paging

For more details about pagination, see the Graph API guide.

summary

Aggregated information about the edge, such as counts. Specify the fields to fetch in the summary param (like summary=total_count).

FieldDescription
total_count
int32

Total number of objects on this edge

Validation Rules

ErrorDescription
200Permissions error
100Invalid parameter

Creating

You can make a POST request to owned_businesses edge from the following paths:
When posting to this edge, a Business will be created.

Parameters

ParameterDescription
name
string

name

Required
page_permitted_tasks
array<enum {MANAGE, CREATE_CONTENT, MODERATE, ADVERTISE, ANALYZE, MODERATE_COMMUNITY, MANAGE_JOBS, PAGES_MESSAGING, PAGES_MESSAGING_SUBSCRIPTIONS, READ_PAGE_MAILBOXES, VIEW_MONETIZATION_INSIGHTS, MANAGE_LEADS, PLATFORM_MANAGE_PAGES, PLATFORM_READ_INSIGHTS, PLATFORM_PAGES_MANAGE_INSTANT_ARTICLES}>

page_permitted_tasks

sales_rep_email
string

sales_rep_email

shared_page_id
page ID

shared_page_id

survey_business_type
enum {AGENCY, ADVERTISER, APP_DEVELOPER, PUBLISHER}

survey_business_type

survey_num_assets
int64

survey_num_assets

survey_num_people
int64

survey_num_people

timezone_id
int64

timezone_id

vertical
enum {ADVERTISING, AUTOMOTIVE, CONSUMER_PACKAGED_GOODS, ECOMMERCE, EDUCATION, ENERGY_AND_UTILITIES, ENTERTAINMENT_AND_MEDIA, FINANCIAL_SERVICES, GAMING, GOVERNMENT_AND_POLITICS, MARKETING, ORGANIZATIONS_AND_ASSOCIATIONS, PROFESSIONAL_SERVICES, RETAIL, TECHNOLOGY, TELECOM, TRAVEL, NON_PROFIT, RESTAURANT, HEALTH, LUXURY, OTHER}

vertical

Required

Return Type

This endpoint supports read-after-write and will read the node represented by id in the return type.
Struct {
id: numeric string,
}

Validation Rules

ErrorDescription
3947You are trying to create a Business Manager with the same name as one you are already a part of. Please pick a different name.
3913It doesn't look like you have permission to create a new Business Manager.
100Invalid parameter
200Permissions error
3974The name you chose for this Business Manager is not valid. Try a different name.

Updating

You can't perform this operation on this endpoint.

Deleting

You can dissociate a Business from a Business by making a DELETE request to /{business_id}/owned_businesses.

Parameters

ParameterDescription
client_id
business ID

client_id

Required

Return Type

Struct {
success: bool,
}

Validation Rules

ErrorDescription
3912There was a technical issue and the changes you made to your Business Manager weren't saved. Please try again.
100Invalid parameter