UNPKG

1.76 kBMarkdownView Raw
1# @uppy/facebook
2
3<img src="https://uppy.io/images/logos/uppy-dog-head-arrow.svg" width="120" alt="Uppy logo: a superman puppy in a pink suit" align="right">
4
5<a href="https://www.npmjs.com/package/@uppy/facebook"><img src="https://img.shields.io/npm/v/@uppy/facebook.svg?style=flat-square"></a>
6<a href="https://travis-ci.org/transloadit/uppy"><img src="https://img.shields.io/travis/transloadit/uppy/master.svg?style=flat-square" alt="Build Status"></a>
7
8The OneDrive plugin for Uppy lets users import files from their OneDrive account.
9
10A Companion instance is required for the OneDrive plugin to work. Companion handles authentication with Microsoft OneDrive, downloads files from OneDrive and uploads them to the destination. This saves the user bandwidth, especially helpful if they are on a mobile connection.
11
12Uppy is being developed by the folks at [Transloadit](https://transloadit.com), a versatile file encoding service.
13
14## Example
15
16```js
17const Uppy = require('@uppy/core')
18const Facebook = require('@uppy/facebook')
19
20const uppy = new Uppy()
21uppy.use(Facebook, {
22 // Options
23})
24```
25
26## Installation
27
28```bash
29$ npm install @uppy/facebook
30```
31
32We recommend installing from npm and then using a module bundler such as [Webpack](https://webpack.js.org/), [Browserify](http://browserify.org/) or [Rollup.js](http://rollupjs.org/).
33
34Alternatively, you can also use this plugin in a pre-built bundle from Transloadit's CDN: Edgly. In that case `Uppy` will attach itself to the global `window.Uppy` object. See the [main Uppy documentation](https://uppy.io/docs/#Installation) for instructions.
35
36## Documentation
37
38Documentation for this plugin can be found on the [Uppy website](https://uppy.io/docs/facebook).
39
40## License
41
42[The MIT License](./LICENSE).