node.js - Facebook API,创建创意错误无法加载帖子
问题描述
我收到以下错误:
{"name":"FacebookRequestError","message":"Cannot load post: The post cannot be loaded and this can be due to many reasons. For example, the post might not exist, or it exists but is blocked, or it is a scheduled post (and therefore we are not allowed to deliver the post content as an ad)."}
在尝试通过 Facebook sdk 创建广告创意时。请帮我修复它。
这是 nodejs 中的有效负载示例,我将其用作示例。
params = {
'name' : 'Sample Ad creative',
'object_story_spec' : {'page_id': '<pageID>'},
'asset_feed_spec' : {'images':[{'url': '<img url>'}
],'bodies':[
{'text':'Sample text'},
],
'titles':[
{'text':'Sample text'},
],
'descriptions':[
{'text':'Sample text'},
],
'ad_formats':['SINGLE_IMAGE'],
'call_to_action_types':['LEARN_MORE'],
'link_urls': [{'website_url':'<web_url>'}],
'videos':[]},
};
解决方案
推荐阅读
- java - 我可以只关闭文件输出流但在我通过 Netty 发送文件后通道仍然存在吗?
- python - matplotlib:如何返回一个 matplotlib 对象然后绘制为子图?
- android - Kotlin Android Studio - 在字符串中使用 HTML 标签
- scala - 这个功能是否被认为是副作用,因此是糟糕的 FP 设计?
- xml - 使用 XLST 转换将 csv 转换为 xml?
- asp.net-mvc - TBody 无法使用 Jquery DataTable 处理表
- javascript - Java NON Blocking IO Rest 服务
- mysql - 在我的查询中避免重复值
- karate - 在空手道中随机获取呼叫传递,并在邮递员中始终传递
- database - 是否可以从原始字符串和加密字符串中找出密钥?