简体   繁体   English

使用 Python Facebook 营销 ZF20E3C5604C0FAB36D67

[英]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.

相关问题 Facebook Marketing API-按帐户获取无广告的页面ID - Facebook Marketing API - Get Page ID by Account without Ads 我可以使用facebook SDK和python获取喜欢公开页面的粉丝的名单(姓名-电子邮件)吗? - Can I get a list (name - email) of fans who likes a public page using the facebook SDK and python? Python:使用facebook-sdk获取所有个人资料图片的列表 - Python: Get list of all profile pictures using facebook-sdk 如何使用facebook python sdk在facebook中扩展页面的access_token - How to extend the access_token of a page in facebook using facebook python sdk 如何在Python中使用facebook SDK获取facebook帖子的所有评论? - How to get all comments of a facebook post using facebook SDK in Python? Facebook python营销API AttributeError - Facebook python marketing API AttributeError 如何使用Python从Facebook Marketing API中按名称获取特定的广告系列? - How to get specific campaigns by name from Facebook Marketing API using Python? Facebook 营销 API - 获取洞察的 Python - 达到用户请求限制 - Facebook Marketing API - Python to get Insights - User Request Limit Reached 如何使用Facebook Python SDK从访问令牌中获取用户的电子邮件 - How to get a user's email from an access token using the Facebook Python SDK 如何使用 python 将广告集发布到 Facebook 营销 api - How to post an adset to Facebook Marketing api using python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM