Facebook API:Instagram帐户丢失 [英] Facebook API: Instagram Account Is Missing
问题描述
每次创建或更新Ad
的广告素材时,都会出现此错误:
whenever creating or updating an Ad
's creative, I'm getting this error:
{
"error": {
"message": "Invalid parameter",
"type": "OAuthException",
"code": 100,
"error_subcode": 1772103,
"is_transient": false,
"error_user_title": "Instagram Account Is Missing",
"error_user_msg": "You're using Instagram as a placement. Please select an Instagram account to represent your business in your Instagram ads, or select a Facebook Page to use instead.",
"fbtrace_id": "..."
}
}
但是,我只是想做的就是为特定的Page Post
创建一个Ad
并将其添加到现有的AdSet
中.要为给定的Post
创建新的广告素材,我使用/adcreatives
端点并传递以下内容:
However, what I simply try to do is to create an Ad
for a specifc Page Post
and add this to an existing AdSet
. To create a new creative for a given Post
, I use the /adcreatives
endpoint and pass the following:
POST: https://graph.facebook.com/v3.1/act_<ActId>/adcreatives
{
"name": "Test",
"object_story_id":"<PostIdWithPage>",
}
到目前为止,这个方法工作正常.但是Ad
的以下更新导致上述错误:
This works fine so far. But the following update of the Ad
results in the error above:
POST: https://graph.facebook.com/v3.1/<AdId>
{
"creative": {
"creative_id": "<CreativeId>",
}
}
我猜想,当我尝试将无法在Instagram上使用的广告素材添加到Ad
时,会发生上述错误.
I guess, the above error happens when I try to add a creative to the Ad
that can not be used on Instagram.
但是为什么它不能像业务管理器那样工作?在这里,我只需为新创建的广告选择一个帖子.如果该帖子对Instagram无效,则显示警告,但仍然有效.
But why isn't it working like in the Business Manager? There, I can simply select a Post for a newly created Ad. If this Post is not valid for Instagram, it shows a warning but it still works.
因此,当我想创建一个可以根据给定帖子创建广告的工具时,该如何实现?我们如何解决上面的错误?
So, when I want to create a tool that can create Ads based on given Posts, how can I achieve that? How can we come around the error above?
推荐答案
这里重要的缺失部分是,在创建AdCreative
时必须指定instagram_actor_id
.可以通过获取<PageId>/page_backed_instagram_accounts
来检索ID.
The important missing part here is, that we have to specify instagram_actor_id
when creating the AdCreative
. The ID can be retrieved by GETting <PageId>/page_backed_instagram_accounts
.
这篇关于Facebook API:Instagram帐户丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!