首页 文章

为Facebook对象创建链接广告(事件网址)

提问于
浏览
2

在业务经理中,可以使用Facebook活动网址创建链接广告 . 我喜欢用Facebook Ads API做同样的事情,但面临权限错误 .

在业务经理中创建的广告的广告素材如下所示:

{
    "object_story_spec": {
        "page_id": "24188824589????",
        "link_data": {
            "link": "https://www.facebook.com/events/25595316793????/",
            "message": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
            "image_hash": "cbb1f226fd5fe47c826dd1cad117????"
        }
    }
}

当我尝试通过广告Api创建相同的广告素材时,我收到如下错误消息:

{
  "error": {
    "message": "Invalid parameter",
    "type": "FacebookApiException",
    "code": 100,
    "error_subcode": 1349118,
    "is_transient": false,
    "error_user_title": "Disallowed Post Link",
    "error_user_msg": "One or more of the given URLs is not allowed by the Stream post URL security app setting. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains. Read https://developers.facebook.com/docs/facebook-login/security/ to learn more about app settings related to security."
  }
}

如果我尝试单独使用Graph API创建Link Post以用作object_story_id,则会出现相同的错误 .

我们真的需要这种广告来开展业务 . 流广告的效果远远优于展示广告 . 无论如何通过Ads API创建这样的广告?

1 回答

  • 9

    您应该检查应用的迁移设置,以查看是否启用了“Steam post URL security” .

    这可以防止您的应用发布的网址未链接到应用设置中列出的域 .

    enter image description here

相关问题