Facebook api - 请求业务经理合作
Facebook api - request business manager partnership
是否可以通过编程方式请求业务伙伴访问业务拥有的资产。
Facebook business-manager-api 介绍 best practices 与 business-manager-api 合作。如果我们的应用程序可以通过编程方式向客户或代理业务经理请求合作,那将非常方便。
Update
So after digging documentation, playing with Facebook Graph API and asking on official Q/A groups we came to conclusion, that at this moment Facebook API doesn't provide any endpoint to request business partnership. So we refactor our flow and now we will request access to business's ad accounts. I will accept answer as correct, cause at this moment this is the only possible solution
Business Manager API 提供请求访问资产的功能。这记录在资产部分的 Business-to-Business Functions 中。
例如,
Business Manager may request access to an ad account or a page owned by another business manager. They must specify the roles that they want need to be able to assign in the request.
To request AGENCY access, you must provide permitted_roles in your request. You can only send request to assets to business manager that you intend to approve and that they must already know your business.
For example, a business that needs access to adaccount_id and needs to be able to assign its employees as GENERAL_USER and REPORTS_ONLY would make this POST call:
curl \
-F "adaccount_id=act_<AD_ACCOUNT_ID>" \
-F "permitted_roles=['GENERAL_USER','REPORTS_ONLY']" \
"https://graph.facebook.com/<API_VERSION>/<BUSINESS_ID>/client_ad_accounts?access_token=<ACCESS_TOKEN>"
是否可以通过编程方式请求业务伙伴访问业务拥有的资产。 Facebook business-manager-api 介绍 best practices 与 business-manager-api 合作。如果我们的应用程序可以通过编程方式向客户或代理业务经理请求合作,那将非常方便。
Update So after digging documentation, playing with Facebook Graph API and asking on official Q/A groups we came to conclusion, that at this moment Facebook API doesn't provide any endpoint to request business partnership. So we refactor our flow and now we will request access to business's ad accounts. I will accept answer as correct, cause at this moment this is the only possible solution
Business Manager API 提供请求访问资产的功能。这记录在资产部分的 Business-to-Business Functions 中。
例如,
Business Manager may request access to an ad account or a page owned by another business manager. They must specify the roles that they want need to be able to assign in the request.
To request AGENCY access, you must provide permitted_roles in your request. You can only send request to assets to business manager that you intend to approve and that they must already know your business.
For example, a business that needs access to adaccount_id and needs to be able to assign its employees as GENERAL_USER and REPORTS_ONLY would make this POST call:
curl \
-F "adaccount_id=act_<AD_ACCOUNT_ID>" \
-F "permitted_roles=['GENERAL_USER','REPORTS_ONLY']" \
"https://graph.facebook.com/<API_VERSION>/<BUSINESS_ID>/client_ad_accounts?access_token=<ACCESS_TOKEN>"