These instructions are missing a key element. Unless you know the Page that is linked to the Instagram Business Account, how on Earth are you supposed to get the Id?
https://developers.facebook.com/docs/instagram-api/getting-started/
Is there an API call that will give you all the Instagram Business Accounts the User has authorized the Facebook app to work with?
Something like this would be nice. You could then present a list of choices to the end-user.
Here is a C# code snippet for making the call.
var result = await _facebookClient.GetAsync<dynamic>(
accessToken, "me/accounts", "fields=id,name,access_token,category,instagram_business_account{id}");
This always returns null. When the User authorizes the app, he/she is able to select a Instagram Business Account, so that piece is working.
I can get all the Facebook pages, but I can't get the ones linked to Instagram Business Accounts.
Thanks in advance! Any help is much appreciated!