首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Facebook (Instagram)图形API不返回instagram_business_account

Facebook (Instagram)图形API不返回instagram_business_account
EN

Stack Overflow用户
提问于 2021-06-10 02:39:13
回答 1查看 1.3K关注 0票数 3

首先,让我解释一下我今天的情况:

我有一个具有以下权限的访问令牌:instagram_manage_insights

  • I、public_profilepages_show_listpages_read_engagementinstagram_basic有效的访问令牌H 212H 113我试图访问的帐户是业务帐户或内容创建者帐户H 214F 215>

考虑到这一点,我的问题是:一些连接到我的平台的用户在我请求instagram_business_account时根本不返回/me/accounts。

我的请求是使用字段https://graph.facebook.com/v10.0/me/accounts ( id,name,instagram_business_account{id,biography,ig_id,followers_count,follows_count,media_count,name,profile_picture_url,username,website} )。

下面是一个示例结果,其中双方都应该返回instagram_business_account,因为它们都以商业帐户的形式连接到Facebook:

代码语言:javascript
复制
{
    "data": [
        {
            "id": "xxxx",
            "name": "xxxxx"
        },
        {
            "id": "xxxxx",
            "name": "xxxx",
            "instagram_business_account": {
                "id": "xxxx",
                "biography": "xxxx",
                "ig_id": 00000,
                "followers_count": 0000,
                "follows_count": 0000,
                "media_count": 0000,
                "name": "xxx",
                "profile_picture_url": "xxxx",
                "username": "xxxx"
            }
        }
    ],
    "paging": {
        "cursors": {
            "before": "xxxx",
            "after": "xxxx"
        }
    }
}

有人知道这里发生了什么问题吗?

EN

回答 1

Stack Overflow用户

发布于 2021-07-01 20:35:47

我解决了问题。这是Facebook的问题,我们无能为力。Instagram是通过instagram_business_account在Facebook上连接的。如果此值不存在,则意味着帐户未正确连接。用户应该重新连接页面https://www.facebook.com/{id}/settings/?tab=instagram_management

id值是查询结果中的值。第二个选择是转到Instagram,进入个人资料,点击“编辑个人资料”,在“页面”中,只需再次连接到Facebook。

这样你就能得到正确的结果。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67913916

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档