【发布时间】:2021-06-10 02:39:13
【问题描述】:
首先,让我解释一下我今天的情况:
- 我有一个具有以下权限的访问令牌:
email、public_profile、pages_show_list、pages_read_engagement、instagram_basic、instagram_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"
}
}
}
有人知道这里发生了什么问题吗?
【问题讨论】:
-
你有没有想过这个问题?我有同样的问题。 stackoverflow.com/questions/68186288/…
-
是的,我现在就回答我的问题。
标签: facebook-graph-api instagram facebook-opengraph instagram-api instagram-graph-api