2014-09-24 29 views
2

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

在业务经理创建了一个广告的广告内容是这样的一个:

{ 
    "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的链接帖子来作为object_story_id使用,我会得到同样的错误。

我们确实需要这种类型的广告用于我们的业务。流式广告的效果要比展示广告好得多。无论如何通过Ads API创建像这样的广告?

回答

9

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

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

enter image description here

相关问题