Facebook plugin import error

Hey, I’m trying to use facebook plugin but I get the error: “Uncaught TypeError: Expected a plugin class, but got undefined. Please verify that the plugin was imported and spelled correctly.”

the steps I did were:
changed scripts to :
https://transloadit.edgly.net/releases/uppy/v1.6.0/uppy.min.css and
https://transloadit.edgly.net/releases/uppy/v1.6.0/uppy.min.js

npm install @uppy/facebook

const uppy = Uppy.Core({…}).use(Uppy.Facebook, { target: Uppy.Dashboard, companionUrl: …})…

I will appreciate any help!