> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram

> Check whether Instagram is installed and share images directly to the Instagram Feed, Stories, or Reels with the JavaScript Bridge.

You can share text and media directly to Instagram as an Instagram Reel or directly to the user's Feed.

## Implementation guide

### Checking for availability

Before sharing content, check whether Instagram is installed on the user’s device. Use the following JavaScript Bridge method:

Median JavaScript Bridge

```javascript JavaScript theme={null}
const { isInstalled } = await median.socialShare.instagram.isInstalled();
```

### Sharing media

This plugin only supports media sharing as a `Blob` object. You can save a remote image as a `Blob` using the following code snippet.

```javascript JavaScript theme={null}
  fetch("url-to-image")
  .then(function(response) {
    return response.blob();
  })
  .then(function(blob) {
    // here the image is a blob
  });
```

Other plugins from Median (such as the [Web Screenshot plugin](https://docs.median.co/docs/web-screenshot.md)) also export images as Blobs which can then be used with this plugin.

### Sharing to feed

Use the following JavaScript Bridge command to share an image directly to the Instagram Feed:

Median JavaScript Bridge

```javascript JavaScript theme={null}
median.socialShare.instagram.shareToFeed(blob);
```

> [!WARNING]
>
> **Direct feed sharing isn't available on iOS**
>
> On iOS, Instagram no longer supports direct sharing to the feed and presents the OS share dialog instead.

### Sharing to story or reels

Share images directly to Instagram Stories or Reels. This method supports optional sticker attachments and captions.

Run the following Median JavaScript Bridge command:

Median JavaScript Bridge

```javascript JavaScript theme={null}
median.socialShare.instagram.share(blob, { attachment: stickerBlob, captionText: 'Caption for Snapchat' });
```


## Related topics

- [Social share overview](https://docs.median.co/docs/social-share.md)
- [Analytics](https://docs.median.co/docs/analytics.md)
- [Integrations](https://docs.median.co/docs/integrations.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.