【问题标题】:Facebook (Instagram) Graph API not returning instagram_business_accountFacebook (Instagram) Graph API 未返回 instagram_business_account
【发布时间】:2021-06-10 02:39:13
【问题描述】:

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

  • 我有一个具有以下权限的访问令牌:emailpublic_profilepages_show_listpages_read_engagementinstagram_basicinstagram_manage_insights
  • 我有一个有效的访问令牌
  • 我尝试访问的帐户是企业帐户或内容创建者帐户

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

我的请求是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:

{
    "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"
        }
    }
}

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

【问题讨论】:

标签: facebook-graph-api instagram facebook-opengraph instagram-api instagram-graph-api


【解决方案1】:

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

id 值是来自查询结果的值。第二种选择是转到 Instagram,转到个人资料,单击“编辑个人资料”,然后在“页面”中,再次连接到 Facebook。

这样你就可以得到正确的结果了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-06
    相关资源
    最近更新 更多