Skip to content

Facebook — Business và quảng cáo ​

Xem quyền đã cấp (List granted permissions) — facebook.list_permissions ​

Lists the permissions the connected Facebook user granted or declined to the app. Use to explain why another Facebook action failed with a permission error.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

FieldNhãnKiểuBắt buộcMô tả
limitSố kết quả tối đaintegerkhôngMax items per page (1-100). Min 1. Max 100.
afterCon trỏ trang tiếp theostringkhôngCursor for the next page, from paging.cursors.after of the previous call.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].permissionstring
data[].statusstring
pagingPhân trangobject
paging.cursorsobject

Xem danh sách Business (List businesses) — facebook.list_businesses ​

Lists Business Manager accounts the connected user belongs to (id, name). Use the id with list_owned_pages or list_owned_ad_accounts.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcóbusiness_management

Input

FieldNhãnKiểuBắt buộcMô tả
fieldsCác trường cần lấy (fields)stringkhôngComma-separated Graph fields to return, e.g. "id,name"; empty uses the defaults.
limitSố kết quả tối đaintegerkhôngMax items per page (1-100). Min 1. Max 100.
afterCon trỏ trang tiếp theostringkhôngCursor for the next page, from paging.cursors.after of the previous call.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].idstring
data[].namestring
pagingPhân trangobject
paging.cursorsobject

Xem Page do Business sở hữu (List business-owned Pages) — facebook.list_owned_pages ​

Lists Pages owned by a Business Manager account. Requires the business id from list_businesses. Supports paging.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcóbusiness_management

Input

FieldNhãnKiểuBắt buộcMô tả
business_idMã BusinessstringcóBusiness Manager id. From facebook.list_businesses.
fieldsCác trường cần lấy (fields)stringkhôngComma-separated Graph fields to return, e.g. "id,name"; empty uses the defaults.
limitSố kết quả tối đaintegerkhôngMax items per page (1-100). Min 1. Max 100.
afterCon trỏ trang tiếp theostringkhôngCursor for the next page, from paging.cursors.after of the previous call.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].idstring
data[].namestring
data[].categorystring
pagingPhân trangobject
paging.cursorsobject

Xem Page khách hàng của Business (List business client Pages) — facebook.list_client_pages ​

Lists Pages that clients shared with a Business Manager account. Requires the business id from list_businesses. Supports paging.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcóbusiness_management

Input

FieldNhãnKiểuBắt buộcMô tả
business_idMã BusinessstringcóBusiness Manager id. From facebook.list_businesses.
fieldsCác trường cần lấy (fields)stringkhôngComma-separated Graph fields to return, e.g. "id,name"; empty uses the defaults.
limitSố kết quả tối đaintegerkhôngMax items per page (1-100). Min 1. Max 100.
afterCon trỏ trang tiếp theostringkhôngCursor for the next page, from paging.cursors.after of the previous call.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].idstring
data[].namestring
data[].categorystring
pagingPhân trangobject
paging.cursorsobject

Xem tài khoản quảng cáo (List ad accounts) — facebook.list_ad_accounts ​

Lists ad accounts the connected user can access (id like act_123, name, status, currency). Use the id as parent for list_ads or get_ad_insights.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcóads_read

Input

FieldNhãnKiểuBắt buộcMô tả
fieldsCác trường cần lấy (fields)stringkhôngComma-separated Graph fields to return, e.g. "id,name"; empty uses the defaults.
limitSố kết quả tối đaintegerkhôngMax items per page (1-100). Min 1. Max 100.
afterCon trỏ trang tiếp theostringkhôngCursor for the next page, from paging.cursors.after of the previous call.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].idstring
data[].namestring
data[].account_statusinteger
data[].currencystring
pagingPhân trangobject
paging.cursorsobject

Xem tài khoản quảng cáo của Business (List business-owned ad accounts) — facebook.list_owned_ad_accounts ​

Lists ad accounts owned by a Business Manager account. Requires the business id from list_businesses. Supports paging.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcóads_read, business_management

Input

FieldNhãnKiểuBắt buộcMô tả
business_idMã BusinessstringcóBusiness Manager id. From facebook.list_businesses.
fieldsCác trường cần lấy (fields)stringkhôngComma-separated Graph fields to return, e.g. "id,name"; empty uses the defaults.
limitSố kết quả tối đaintegerkhôngMax items per page (1-100). Min 1. Max 100.
afterCon trỏ trang tiếp theostringkhôngCursor for the next page, from paging.cursors.after of the previous call.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].idstring
data[].namestring
data[].account_statusinteger
data[].currencystring
pagingPhân trangobject
paging.cursorsobject

Xem danh sách quảng cáo (List ads) — facebook.list_ads ​

Lists ads under an ad account (act_...), campaign or ad set. effective_status filters, e.g. ["ACTIVE","PAUSED"]. Supports paging.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcóads_read

Input

FieldNhãnKiểuBắt buộcMô tả
parent_idMã tài khoản, chiến dịch hoặc nhóm quảng cáostringcóAd account id (act_<id>), campaign id or ad set id. From facebook.list_ad_accounts.
fieldsCác trường cần lấy (fields)stringkhôngComma-separated Graph fields to return, e.g. "id,name"; empty uses the defaults.
effective_statusTrạng thái hiệu lựcstringkhôngJSON array string of ad statuses to keep, e.g. ["ACTIVE","PAUSED"].
limitSố kết quả tối đaintegerkhôngMax items per page (1-100). Min 1. Max 100.
afterCon trỏ trang tiếp theostringkhôngCursor for the next page, from paging.cursors.after of the previous call.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].idstring
data[].namestring
data[].statusstring
data[].effective_statusstring
pagingPhân trangobject
paging.cursorsobject

Xem insights quảng cáo (Get ad insights) — facebook.get_ad_insights ​

Reads ad performance for an ad account, campaign, ad set or ad. Choose fields (impressions,spend,clicks), date_preset, time_range, level, breakdowns. time_range is a JSON string like {"since":"YYYY-MM-DD","until":"YYYY-MM-DD"}.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcóads_read

Input

FieldNhãnKiểuBắt buộcMô tả
object_idMã đối tượng quảng cáostringcóAd account (act_<id>), campaign, ad set or ad id. From facebook.list_ad_accounts.
fieldsCác trường cần lấy (fields)stringkhôngComma-separated insight fields, e.g. "impressions,spend,clicks".
date_presetKhoảng thời gian định sẵnstringkhôngRelative date range; default last_30d. Ignored when time_range is set. One of: today, yesterday, this_month, last_month, this_quarter, maximum, data_maximum, last_3d, last_7d, last_14d, last_28d, last_30d, last_90d, last_week_mon_sun, last_week_sun_sat, last_quarter, last_year, this_week_mon_today, this_week_sun_today, this_year.
time_rangeKhoảng thời gian tùy chọnstringkhôngJSON string like
levelCấp độstringkhôngLevel to aggregate results at; defaults to the level of object_id. One of: ad, adset, campaign, account.
breakdownsPhân tách (breakdowns)stringkhôngComma-separated breakdowns, e.g. "age,gender" or "publisher_platform".
limitSố kết quả tối đaintegerkhôngMax items per page (1-100). Min 1. Max 100.
afterCon trỏ trang tiếp theostringkhôngCursor for the next page, from paging.cursors.after of the previous call.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].impressionsstring
data[].clicksstring
data[].spendstring
data[].date_startstring
data[].date_stopstring
pagingPhân trangobject
paging.cursorsobject

Tìm vị trí nhắm mục tiêu (Search targeting locations) — facebook.search_geographic_targeting_locations ​

Searches geographic locations usable in ad targeting by keyword q. location_types limits to country, region, city, etc. Returns keys for targeting specs. location_types is a JSON array string like ["city","region"].

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcóads_read

Input

FieldNhãnKiểuBắt buộcMô tả
qTừ khóa tìm kiếmstringcóLocation name to search, e.g. "Hanoi".
location_typesLoại vị trístringkhôngJSON array string of types, e.g. ["city","region"]; country, region, city, zip, geo_market, electoral_district.
limitSố kết quả tối đaintegerkhôngMax items per page (1-100). Min 1. Max 100.
afterCon trỏ trang tiếp theostringkhôngCursor for the next page, from paging.cursors.after of the previous call.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
dataDanh sách kết quảarray of object
data[].keystring
data[].namestring
data[].typestring
data[].country_codestring
pagingPhân trangobject
paging.cursorsobject

Xem tài khoản đang kết nối (Get current user) — facebook.get_current_user ​

Reads the connected Facebook user profile (id, name). Use to confirm which account is connected. Pass fields to request more.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

FieldNhãnKiểuBắt buộcMô tả
fieldsCác trường cần lấy (fields)stringkhôngComma-separated Graph fields to return, e.g. "id,name"; empty uses the defaults.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
idMã người dùngstring
nameTênstring

Đọc một đối tượng Graph (Get Graph object) — facebook.get_graph_object ​

Reads any Graph node by id (digits, 123_456, me or act_<id>). Pass fields to choose properties and page_id to use that Page's token.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

FieldNhãnKiểuBắt buộcMô tả
node_idMã đối tượngstringcóGraph node id: digits, "123_456", "me" or "act_<id>".
fieldsCác trường cần lấy (fields)stringkhôngComma-separated Graph fields to return, e.g. "id,name"; empty uses the defaults.
page_idMã Page (dùng token của Page)stringkhôngPage whose token is used to read; empty uses the user token. From facebook.list_managed_pages.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
idMã đối tượngstring

Đọc nhiều đối tượng Graph (Get Graph objects) — facebook.get_graph_objects ​

Reads 1-50 Graph nodes by id in one call. Returns an objects map keyed by id. Pass page_id to use that Page's token.

Tác độngRủi roCần duyệtIdempotentScopes
NONElowkhôngcó—

Input

FieldNhãnKiểuBắt buộcMô tả
idsDanh sách mã đối tượngarray of stringcóGraph node ids (1-50), e.g. ["123", "123_456"].
fieldsCác trường cần lấy (fields)stringkhôngComma-separated Graph fields to return, e.g. "id,name"; empty uses the defaults.
page_idMã Page (dùng token của Page)stringkhôngPage whose token is used to read; empty uses the user token. From facebook.list_managed_pages.

Field thêm: bỏ qua.

Output

FieldNhãnKiểuMô tả
objectsĐối tượng theo mãobject