Can't get Instagram Business Account ID through Facebook Graph API

user3219996 picture user3219996 · Jun 6, 2018 · Viewed 13.3k times · Source

I'm trying to access the media of my Instagram business account through Facebook Graph API. I'm following this guide: https://developers.facebook.com/docs/instagram-api/getting-started/

I've set up everything as requested: I have an Instagram business account, a Facebook page connected to this account and a Facebook app.

In step 5, when I try to get the Instagram Account ID with

GET /v3.0/{page id}?fields=instagram_business_account

the response I get looks different than the one in the guide. The Instagram business account field is missing, I only get back the ID of the Facebook page, which I already have.

Does anyone have an idea what could be wrong here?

Answer

joacar picture joacar · Jun 25, 2018

Try the query below with the manage_pages permission.

/v3.0/me/accounts?fields=name,id,access_token,instagram_business_account{id,username,profile_picture_url}

I'm going through the review process and having trouble understand the permissions required to

  1. Get Instagram Business Accounts
  2. Subscribe to instagram_story_insights webhook

I only manage to get 1. by having the manage_pages permission. But I don't want to manage pages, just want to get the Instagram Business Accounts and request insights, feed and profile.

For 2. I only find the /subscribe endpoint and that requires a Facebook Page access token and that is only available with the manage_pages permission.