Code requiring an integration for Instagram are given access to make requests on the Users' behalf. All requests are automatically authenticated.

Here is an example of requesting the Username and Media Count from Instagram:

const response = await window.casthub.fetch({
    integration: 'instagram',
    method: 'GET',
    url: 'me',
    query: {
        fields: [

This supports the GraphQL options from the Facebook Instagram API. Yes, it's a big step down from the old Instagram API, however this is the best we can do now that the old Instagram API is closed.