Docs
- Getting Started
- SME Uploader
- Companion
- List of Plugins
- Common Plugin Options
- Custom Stores
- Locale Packs
UI Elements
Sources
- Drag & Drop
- File Input
- Webcam
- Provider Plugins
- ⓒ Dropbox
- ⓒ Google Drive
- ⓒ OneDrive
- ⓒ Zoom
- ⓒ Import From URL
Destinations
File Processing
- Image Editor
- Robodog Introduction
- Robodog File Picker
- Robodog Form
- Robodog Upload
- Robodog Dashboard
- Transloadit
Miscellaneous
Contributing
The @sme-uploader/instagram
plugin lets users import files from their Instagram account.
A Companion instance is required for the @sme-uploader/instagram
plugin to work. Companion handles authentication with Instagram, downloads the pictures and videos, and uploads them to the destination. This saves the user bandwidth, especially helpful if they are on a mobile connection.
const Instagram = require('@sme-uploader/instagram') uploader.use(Instagram, { // Options }) |
Installation
If you are using the
sme-uploader
package, you do not need to install this plugin manually.
This plugin is published as the @sme-uploader/instagram
package.
Install from NPM:
npm install @sme-uploader/instagram |
In the CDN package, it is available on the SmeUploader
global object:
const Instagram = SmeUploader.Instagram |
CSS
Dashboard plugin is recommended as a container to all Provider plugins, including Instagram. If you are using Dashboard, it comes with all the necessary styles for Instagram as well.
⚠️ If you are feeling adventurous, and want to use Instagram plugin separately, without Dashboard, make sure to include
@sme-uploader/provider-views/dist/style.css
(orstyle.min.css
) CSS file. This is experimental, not officially supported and not recommended.
Options
The @sme-uploader/instagram
plugin has the following configurable options:
uploader.use(Instagram, { target: Dashboard, companionUrl: 'https://companion.uploader.io/', }) |
id: 'Instagram'
A unique identifier for this plugin. It defaults to 'Instagram'
.
title: 'Instagram'
Configures the title / name shown in the UI, for instance, on Dashboard tabs. It defaults to 'Instagram'
.
target: null
DOM element, CSS selector, or plugin to mount the Instagram provider into. This should normally be the @sme-uploader/dashboard
plugin.
companionUrl: null
URL to a Companion instance.
companionHeaders: {}
Custom headers that should be sent along to Companion on every request.
companionAllowedHosts: companionUrl
The valid and authorised URL(s) from which OAuth responses should be accepted.
This value can be a String
, a Regex
pattern, or an Array
of both.
This is useful when you have your Companion running on multiple hosts. Otherwise, the default value should be good enough.
locale: {}
Localize text that is shown to the user.
The default English strings are:
strings: { // TODO } |