Instagram

API

All Modules 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: [
            'id',
            'username',
            'media_count',
        ].join(','),
    },
});

This supports the GraphQL options from the Facebook Instagram API.