Facebook广告,将客户页面添加到业务经理

标签 facebook facebook-graph-api facebook-ads-api

我想要做的是能够从我的 Facebook 帐户创建和发布 FB 广告,并使用 Facebook api 将其发布到其他用户的 Facebook 页面上。

用户可以安装我的应用程序,该应用程序将请求manage_pages+business_management权限以及其他一些所需的权限。(这部分是为测试应用程序完成的并且它正在工作),然后用户可以在我的平台上创建fb广告并将这些页面连接到他们制作的广告。 我也可以从我的平台创建 Facebook 广告,但无法将用户页面连接到我的 Facebook 广告。

  1. 我有一个主帐户,其中连接了业务管理器 + 应用程序(开发模式)+ 系统用户、测试帐户等。

到目前为止,我已经发现我必须将其他 Facebook 用户页面添加到我的业务页面,并根据文档执行此操作,首先我必须使用下面的curl 请求为系统用户安装应用程序。

https://developers.facebook.com/docs/marketing-api/businessmanager/systemuser/v2.10 Installing Apps A system user or an admin system user must install the app that will be used for generating the token. That means to allow the app to call APIs on behalf of this system user or admind system user. Both system user and app should belong to a same business manager To install an app for a system user you need following things: * access_token: of an admin user, admin system user, or another system user if generated * business_app: the app ID being installed To install an application for system user, make a POST request as shown in the example below:

curl \

-F“business_app=APP_ID”\

-F“access_token=ACCESS_TOKEN”\

"https://graph.facebook.com/API_VERSION/APP_SCOPED_SYSTEM_USER_ID/applications "

This call will return a boolean result indicating installation was successful. If any of the restrictions are not met, you will see appropriate error message.

但它从来没有起作用......

我的第一个问题是在进一步讨论之前

  1. 是否可以为系统用户安装始终处于开发模式的测试应用?

如果答案是“否”,那么我将使我的主应用程序上线并提交以供审核,这样我就可以需要主应用程序中不存在的权限,这对我来说听起来不合理,我应该能够在开发模式下使用测试应用程序来执行此操作。

但如果答案是肯定的,请告诉我如何做。 当我尝试时总是收到此错误

Error: Requires business_management permission to manage the object

我已将系统用户作为管理员添加到 Advert 帐户 我已添加系统用户以管理员身份测试应用程序 我在创建系统用户 token 时选中了business_management复选框

非常感谢任何帮助!

ps:如果您认为这不是实现我的目标的正确方法,请纠正我

最佳答案

如果有人来到此页面寻找答案,那么这非常简单,需要特殊权限才能执行此操作,并且您必须联系 Facebook。就这么简单 -_-,还没有获得权限,所以无法添加任何其他内容...

关于Facebook广告,将客户页面添加到业务经理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45575047/

相关文章:

Facebook Graph API/{page-id}/posts 限制为每年 600 个帖子

facebook-graph-api - 为 Facebook Graph Ad API 查询指定 action_type

facebook-ads-api - 测试 Facebook 广告 API - 沙盒?

android - 我如何在不检查的情况下从带有 API 墙的 android 应用程序在 facebook 上发帖?

facebook - 如何通过 Facebook Graph API 墙贴在 "caption"属性中插入换行符?

Android 应用程序本地化 - 在运行时下载翻译

facebook - 为测试用户设置头像

Facebook 广告 API AdSet 创建规范化错误

Facebook 点赞按钮问题

facebook - 使用 Graph API 发布/检索照片评论