그래프 API 버전

Business

Represent a specific business on Facebook. Make the API call to the business ID.

To find the ID of a business, go to Business Manager > Business Settings > Business Info. There, you will see information about the business, including the ID.

읽기

Represents a business on Facebook. Includes any specified properties and assets belonging to the business.

2021년 9월 14일부터 엔드포인트의 필수 권한이 없는 앱에서 보낸 버전 12.0 이상 호출에 대해 다음 필드에 오류가 발생합니다. 이 변경 사항은 2021년 12월 13일부터 모든 버전에 적용됩니다.

  • collaborative_ads_managed_partner_business_info

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

매개변수

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

필드

필드설명
id
numeric string

The business account ID.

block_offline_analytics
bool

Specifies whether offline analytics for business is blocked.

collaborative_ads_managed_partner_business_info
ManagedPartnerBusiness

collaborative_ads_managed_partner_business_info

collaborative_ads_managed_partner_eligibility
BusinessManagedPartnerEligibility

collaborative_ads_managed_partner_eligibility

created_by
BusinessUser|SystemUser

The creator of this business.

created_time
datetime

The creation time of this business.

extended_updated_time
datetime

The update time of the extended credits for this business.

is_hidden
bool

If true, indicates the business is hidden.

link
string

URI for business profile page.

name
string

The name of the business.

payment_account_id
numeric string

The ID for the payment account of this business.

primary_page

The primary Facebook Page for this business.

profile_picture_uri
string

The profile picture URI of the business.

timezone_id
unsigned int32

This business's timezone.

two_factor_type
enum

The two factor type authentication used for this business.

updated_by
BusinessUser|SystemUser

The person's name who last updated this business.

updated_time
datetime

The time when this business was last updated.

verification_status
enum

Verification status for this business.

vertical
string

The vertical industry that this business associates with, or belongs to.

vertical_id
unsigned int32

The ID for the vertical industry.

에지

Edge설명
Edge<AdStudy>

The studies this business has access to, such as any advertising lift studies or split testing studies.

Edge<AdNetworkAnalyticsSyncQueryResult>

Audience Network query for this publisher entity.

Edge<AdNetworkAnalyticsAsyncQueryResult>

Obtain the results of an asynchronous Audience Network query for this publisher entity.

Edge<AdsReportBuilderMMMReport>

Marketing mix modeling (MMM) reports generated for this business

Edge<AdsReportBuilderMMMReportScheduler>

Marketing mix modeling (MMM) reports schedulers for this business

Edge<AdsPixel>

The business has access to these pixels.

Edge<Business>

Agencies associated with this business.

Edge<AdPlacement>

Placements used by this Audience Network business.

Edge<BusinessAssetGroup>

Business asset groups owned by this business. The business can grant permissions to assets in this group.

Edge<OmegaCustomerTrx>

The extended credit invoices of this business.

Edge<BusinessUser>

Business users associated with this business. Includes employees and admins at the business.

Edge<Application>

This business has access to these client apps.

Edge<OffsiteSignalContainerBusinessObject>

The business has access to these client offsite signal container business objects

Edge<Page>

This business has access to these client pages.

Edge<AdsPixel>

This business has access to these client pixels.

Edge<ProductCatalog>

This business has access to these client product catalogs.

Edge<WhatsAppBusinessAccount>

WhatsApp business accounts that were shared to this business.

Edge<Business>

Clients of this business.

Edge<CPASCollaborationRequest>

All Collaborative Ads. collaboration requests initiated by the business.

Edge<CPASAdvertiserPartnershipRecommendation>

Collaborative Ads suggested partners for a business.

Edge<CommerceMerchantSettings>

Commerce Merchant Settings belonging to this business.

Edge<EventSourceGroup>

The business owns these event source groups. Includes various signals sources such as pixels.

Edge<ExtendedCredit>

Extended credits for this business.

Edge<BusinessAssetSharingAgreement>

The audience sharing requests initiated by this business.

Edge<InstagramUser>

This business has access to these Instagram accounts.

Edge<OpenBridgeConfiguration>

Get all the openbridge configurations associated to this business

Edge<Application>

This business owns these apps.

Edge<Business>

This business aggregates and manages these client businesses.

Edge<InstagramUser>

This business owns these Instagram accounts.

Edge<OffsiteSignalContainerBusinessObject>

owned_offsite_signal_container_business_objects

Edge<Page>

This business owns these pages.

Edge<AdsPixel>

This business owns these pixels.

Edge<ProductCatalog>

This business owns these product catalogs.

Edge<WhatsAppBusinessAccount>

This business owns these WhatsApp Business Accounts.

Edge<BusinessAdAccountRequest>

This business requested access to these client ad accounts and is pending approval.

Edge<BusinessApplicationRequest>

This business requested access to these client apps and is pending approval.

Edge<BusinessPageRequest>

This business requested access to these client pages and is pending approval.

Edge<BusinessAdAccountRequest>

This business requested ownership of these ad accounts and is pending approval.

Edge<BusinessPageRequest>

This business requested ownership of these pages and is pending approval.

Edge<OffsiteSignalContainerBusinessObject>

This business received sharing requests for these offsite signal container business objects and is pending for approval.

Edge<BusinessRoleRequest>

Admin for this business invited this user to the business. Pending user approval.

Edge<WhatsAppBusinessPreVerifiedPhoneNumber>

Edge to get list of all pre-created phone numbers for this business

Edge<BusinessAssetSharingAgreement>

The audience sharing requests received by this business.

Edge<ResellerGuidance>

Guidance for a China reseller business.

Edge<WhatsAppBusinessPartnerClientVerificationSubmission>

Business Service Providers can submit their client information for verification on WhatsApp Business Platform. This endpoint returns statuses, submitted info, and rejection reasons for the submissions.

Edge<SystemUser>

The business's system users.

오류 코드

오류설명
104Incorrect signature
190Invalid OAuth 2.0 Access Token
100Invalid parameter
368The action attempted has been deemed abusive or is otherwise disallowed
200Permissions error
2635You are calling a deprecated version of the Ads API. Please update to the latest version.
2500Error parsing graph query
80004There have been too many calls to this ad-account. Wait a bit and try again. For more info, please refer to https://developers.facebook.com/docs/graph-api/overview/rate-limiting#ads-management.

만들기

To create other Business Managers, your business needs to obtain BUSINESS_MANAGEMENT during the app review process. If your app is in development mode, you can surpass this requirement, but to create only two child businesses.

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

매개변수

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

반환 유형

Struct {
id: numeric string,
link_with_id: string,
}

오류 코드

오류설명
200Permissions error
다음 경로에서 businesses 에지에 POST 요청을 만들 수 있습니다:
이 에지에 게시할 때 a Business이(가) 생성됩니다.

매개변수

매개변수설명
child_business_external_id
string

child_business_external_id

email
string

The business email of the business admin

name
string

Username

필수
primary_page
page ID

Primary Page ID

sales_rep_email
string

Sales Rep email address

survey_business_type
enum {AGENCY, ADVERTISER, APP_DEVELOPER, PUBLISHER}

Business Type

survey_num_assets
int64

Number of Assets in the business

survey_num_people
int64

Number of People that will work on the business

timezone_id
int64

Timezone ID

vertical
enum {NOT_SET, 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 ID

필수

반환 유형

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

오류 코드

오류설명
100Invalid parameter
368The action attempted has been deemed abusive or is otherwise disallowed
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.
3974The name you chose for this Business Manager is not valid. Try a different name.
3918The Facebook Page you've tried to add is already owned by another Business Manager. You can still request access to this Page, but your request will need to be approved by the Business Manager that owns it.
3998You must be an admin of the primary Page to create a business using that page.
200Permissions error
3913It doesn't look like you have permission to create a new Business Manager.
다음 경로에서 owned_businesses 에지에 POST 요청을 만들 수 있습니다:
이 에지에 게시할 때 a Business이(가) 생성됩니다.

매개변수

매개변수설명
name
string

name

필수
page_permitted_tasks
array<enum {MANAGE, CREATE_CONTENT, MODERATE, MESSAGING, ADVERTISE, ANALYZE, MODERATE_COMMUNITY, MANAGE_JOBS, PAGES_MESSAGING, PAGES_MESSAGING_SUBSCRIPTIONS, READ_PAGE_MAILBOXES, VIEW_MONETIZATION_INSIGHTS, MANAGE_LEADS, PROFILE_PLUS_FULL_CONTROL, PROFILE_PLUS_MANAGE, PROFILE_PLUS_FACEBOOK_ACCESS, PROFILE_PLUS_CREATE_CONTENT, PROFILE_PLUS_MODERATE, PROFILE_PLUS_MODERATE_DELEGATE_COMMUNITY, PROFILE_PLUS_MESSAGING, PROFILE_PLUS_ADVERTISE, PROFILE_PLUS_ANALYZE, PROFILE_PLUS_REVENUE, PROFILE_PLUS_MANAGE_LEADS, CASHIER_ROLE}>

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 {NOT_SET, 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

필수

반환 유형

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

오류 코드

오류설명
100Invalid parameter
200Permissions error
368The action attempted has been deemed abusive or is otherwise disallowed
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.

업데이트 중

/{business_id}에 POST 요청을 하여 a Business을(를) 업데이트할 수 있습니다.

매개변수

매개변수설명
entry_point
string

entry point of claiming BusinessClaimAssetEntryPoint

name
string

Business's name

primary_page
numeric string or integer

Primary page of this business

timezone_id
int64

Timezone id of this business

two_factor_type
enum{none, admin_required, all_required}

Two-factor type of the business

vertical
enum {NOT_SET, 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 type of the business

반환 유형

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

오류 코드

오류설명
3974The name you chose for this Business Manager is not valid. Try a different name.
3973The name you chose for this Business Manager is not valid. Please choose another.
3910You need permission to edit the details of your Business Manager. Please talk to one of your Business Manager admins about changing your role or editing the Business Manager details.
3911You need permission to set up a new Business Manager.
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.
3912There was a technical issue and the changes you made to your Business Manager weren't saved. Please try again.
3918The Facebook Page you've tried to add is already owned by another Business Manager. You can still request access to this Page, but your request will need to be approved by the Business Manager that owns it.
100Invalid parameter
457The session has an invalid origin
368The action attempted has been deemed abusive or is otherwise disallowed
/{business_id}/managed_businesses에 POST 요청을 하여 a Business을(를) 업데이트할 수 있습니다.

매개변수

매개변수설명
child_business_external_id
string

child_business_external_id

existing_client_business_id
business ID

Existing client business id provided by the client

name
string

Client business name that's managed by the aggregator business

sales_rep_email
string

Email of sales representative of the business that's managed by the aggregator business

survey_business_type
enum {AGENCY, ADVERTISER, APP_DEVELOPER, PUBLISHER}

Business type of surveyed business that's managed by the aggregator business

survey_num_assets
int64

Number of assets surveyed of business that's managed by the aggregator business

survey_num_people
int64

Number of people surveyed of business that's managed by the aggregator business

timezone_id
int64

Timezone id of business that's managed by the aggregator business

vertical
enum {NOT_SET, 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}

Business vertical of business that's managed by the aggregator business

반환 유형

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

오류 코드

오류설명
42004You couldn't create the client business on behalf your client successfully
100Invalid parameter
190Invalid OAuth 2.0 Access Token
200Permissions error

삭제 중

/{business_id}/agencies에 DELETE 요청을 만들어 a Business에서 a Business을(를) 분리할 수 있습니다.

매개변수

매개변수설명
business
numeric string or integer

The agency's business.

필수

반환 유형

Struct {
success: bool,
}

오류 코드

오류설명
100Invalid parameter
/{business_id}/clients에 DELETE 요청을 만들어 a Business에서 a Business을(를) 분리할 수 있습니다.

매개변수

매개변수설명
business
numeric string or integer

The client's business.

필수

반환 유형

Struct {
success: bool,
}

오류 코드

오류설명
2635You are calling a deprecated version of the Ads API. Please update to the latest version.
/{business_id}/pages에 DELETE 요청을 만들어 a Business에서 a Business을(를) 분리할 수 있습니다.

매개변수

매개변수설명
page_id
Page ID

Page ID.

필수

반환 유형

Struct {
success: bool,
}

오류 코드

오류설명
100Invalid parameter
3996The page does not belong to this Business Manager.
42001This Page can't be removed because it's already linked to an Instagram business profile. To remove this Page from Business Manager, go to Instagram and convert to a personal account or change the Page linked to your business profile.
368The action attempted has been deemed abusive or is otherwise disallowed
190Invalid OAuth 2.0 Access Token
457The session has an invalid origin
415Two factor authentication required. User have to enter a code from SMS or TOTP code generator to pass 2fac. This could happen when accessing a 2fac-protected asset like a page that is owned by a 2fac-protected business manager.
200Permissions error
/{business_id}/instagram_accounts에 DELETE 요청을 만들어 a Business에서 a Business을(를) 분리할 수 있습니다.

매개변수

매개변수설명
instagram_account
Instagram account/Instagram account v2 ID

Instagram account ID.

필수

반환 유형

Struct {
success: bool,
}

오류 코드

오류설명
100Invalid parameter
200Permissions error
457The session has an invalid origin
415Two factor authentication required. User have to enter a code from SMS or TOTP code generator to pass 2fac. This could happen when accessing a 2fac-protected asset like a page that is owned by a 2fac-protected business manager.
/{business_id}/ad_accounts에 DELETE 요청을 만들어 a Business에서 a Business을(를) 분리할 수 있습니다.

매개변수

매개변수설명
adaccount_id
string

Ad account ID.

필수

반환 유형

Struct {
success: bool,
}

오류 코드

오류설명
100Invalid parameter
368The action attempted has been deemed abusive or is otherwise disallowed
190Invalid OAuth 2.0 Access Token
/{business_id}/owned_businesses에 DELETE 요청을 만들어 a Business에서 a Business을(를) 분리할 수 있습니다.

매개변수

매개변수설명
client_id
business ID

client_id

필수

반환 유형

Struct {
success: bool,
}

오류 코드

오류설명
3912There was a technical issue and the changes you made to your Business Manager weren't saved. Please try again.
/act_{ad_account_id}/agencies에 DELETE 요청을 만들어 an AdAccount에서 a Business을(를) 분리할 수 있습니다.

매개변수

매개변수설명
business
business ID

SELF_EXPLANATORY

필수

반환 유형

Struct {
success: bool,
}

오류 코드

오류설명
100Invalid parameter
/{user_id}/businesses에 DELETE 요청을 만들어 a User에서 a Business을(를) 분리할 수 있습니다.

매개변수

매개변수설명
business
numeric string or integer

Business ID

반환 유형

Struct {
success: bool,
}

오류 코드

오류설명
3914It looks like you're trying to remove the last admin from this Business Manager. At least one admin is required in Business Manager.
368The action attempted has been deemed abusive or is otherwise disallowed
190Invalid OAuth 2.0 Access Token
100Invalid parameter