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

为Facebook对象创建链接广告(事件url),facebook,facebook-graph-api,facebook-ads-api,Facebook,Facebook Graph Api,Facebook Ads Api,在business manager中,可以创建带有Facebook事件url的链接广告。我喜欢对Facebook广告API做同样的操作,但面临权限错误 在business manager中创建的广告创意如下所示: { "object_story_spec": { "page_id": "24188824589????", "link_data": { "link": "https://www.facebook.com/events/

在business manager中,可以创建带有Facebook事件url的链接广告。我喜欢对Facebook广告API做同样的操作,但面临权限错误

在business manager中创建的广告创意如下所示:

{
    "object_story_spec": {
        "page_id": "24188824589????",
        "link_data": {
            "link": "https://www.facebook.com/events/25595316793????/",
            "message": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
            "image_hash": "cbb1f226fd5fe47c826dd1cad117????"
        }
    }
}
当我试图通过Ads 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单独创建一个链接帖子以用作对象\故事\ id,则会出现相同的错误


我们的生意真的需要这种广告。流内广告的性能要比显示广告好得多。是否可以通过ads API创建这样的广告?

您应该检查应用程序的迁移设置,查看是否启用了“Steam post URL安全”

这将防止应用程序发布未链接到应用程序设置中列出的域的URL