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創建像這樣的廣告?