[英]Get the list of Facebook page IDs an account has access to using Python Facebook Marketing SDK
What would the call be to do this in the Python SDK?在 Python SDK 中执行此操作的调用是什么?
Example of what part of the code I need, but can't find (this is wrong):我需要哪部分代码但找不到的示例(这是错误的):
response = AdAccount(id).get_list_of_pages(fields, params)
Figured it out.弄清楚了。 business_number
is Facebook business manager ID as an integer. business_number
是 Facebook 业务经理 ID,即 integer。 ad_account
is advertising account number with act_
prefixed to the number. ad_account
是广告帐号,号码前有act_
。
params = {'business': business_number}
users = AdAccount(ad_account).get_assigned_users(params=params)
pages = AdAccountUser(users[0]['id']).get_pages()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.