UNPKG

1.93 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<img src="https://github.com/transloadit/uppy/workflows/Tests/badge.svg" alt="CI status for Uppy tests"> <img src="https://github.com/transloadit/uppy/workflows/Companion/badge.svg" alt="CI status for Companion tests"> <img src="https://github.com/transloadit/uppy/workflows/End-to-end%20tests/badge.svg" alt="CI status for browser tests">
7
8The Facebook plugin for Uppy lets users import files from their Facebook account.
9
10A Companion instance is required for the Facebook plugin to work. Companion handles authentication with Facebook, downloads files from Facebook and uploads them to the destination. This saves the user bandwidth, especially helpful if they are on a mobile connection.
11
12
13Uppy is being developed by the folks at [Transloadit](https://transloadit.com), a versatile file encoding service.
14
15## Example
16
17```js
18const Uppy = require('@uppy/core')
19const Facebook = require('@uppy/facebook')
20
21const uppy = new Uppy()
22uppy.use(Facebook, {
23 // Options
24})
25```
26
27## Installation
28
29```bash
30$ npm install @uppy/facebook
31```
32
33We 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/).
34
35Alternatively, 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.
36
37## Documentation
38
39Documentation for this plugin can be found on the [Uppy website](https://uppy.io/docs/facebook).
40
41## License
42
43[The MIT License](./LICENSE).