最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Can't get Instagram long-lived token for some business accounts - Stack Overflow

programmeradmin1浏览0评论

I have the instagram API flow working.

  • Authorize to
  • Exchange token for long-lived access token at ;client_secret=${IG_APP_SECRET}&access_token=${access_token}

The only scope is instagram_business_basic.

What I can't figure out is, why this flow works perfectly for me, but not for another test user, who also has an Instagram business account. The response for their token is "Unsupported request - method type: get"

I can't figure out the differences between the two accounts. I've also tried to use the graph API to find the difference ,username,account_type&access_token={token} Which works for my account, but for their token shows the same error. How else can I investigate this?

Edit: I discovered I was a test user, because though my personal instagram wasn't added, my linked facebook was an admin. When I added the other account as a test user the flow worked for them. However, I still don't know how to make the flow work for non-test users. The business is verified, the app has advanced "instagram_business_basic" permission approved. At this point I'm just requesting random permissions because no one at Meta will communicate with me.

I have the instagram API flow working.

  • Authorize to https://www.instagram/oauth/authorize
  • Exchange token for long-lived access token at https://graph.instagram/access_token?grant_type=ig_exchange_token&client_secret=${IG_APP_SECRET}&access_token=${access_token}

The only scope is instagram_business_basic.

What I can't figure out is, why this flow works perfectly for me, but not for another test user, who also has an Instagram business account. The response for their token is "Unsupported request - method type: get"

I can't figure out the differences between the two accounts. I've also tried to use the graph API to find the difference https://graph.instagram/me?fields=id,username,account_type&access_token={token} Which works for my account, but for their token shows the same error. How else can I investigate this?

Edit: I discovered I was a test user, because though my personal instagram wasn't added, my linked facebook was an admin. When I added the other account as a test user the flow worked for them. However, I still don't know how to make the flow work for non-test users. The business is verified, the app has advanced "instagram_business_basic" permission approved. At this point I'm just requesting random permissions because no one at Meta will communicate with me.

Share Improve this question edited Mar 27 at 17:18 Nate asked Mar 13 at 1:24 NateNate 316 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

I was implicitly a test user because my Facebook account was automatically added as a test user. Adding the other account as a test user resolved their problem. So now I think I need to request advanced access on instagram_basic through app verification. It's hard to get guidance from Meta, though I asked for it in my verification request.

Same understanding here. Do you usually communicate through which platform? If meta wont help, we need to help ourselves :D

发布评论

评论列表(0)

  1. 暂无评论