capacitor-community / facebook-login

Facebook Login support
MIT License
102 stars 57 forks source link

FB is not define web.js #40

Closed aditisharma23 closed 3 years ago

aditisharma23 commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

aditisharma23 commented 3 years ago

ERROR Error: Uncaught (in promise): ReferenceError: FB is not defined ReferenceError: FB is not defined at web.js:22 at new ZoneAwarePromise (zone-evergreen.js:960) at FacebookLoginWeb. (web.js:21) at Generator.next () at web.js:7 at new ZoneAwarePromise (zone-evergreen.js:960) at push../node_modules/@capacitor-community/facebook-login/dist/esm/web.js.__awaiter (web.js:3) at FacebookLoginWeb.login (web.js:19) at LoginPage. (login.page.ts:324) at Generator.next () at resolvePromise (zone-evergreen.js:798) at zone-evergreen.js:705 at rejected (tslib.es6.js:72) at ZoneDelegate.invoke (zone-evergreen.js:364) at Object.onInvoke (core.js:41708) at ZoneDelegate.invoke (zone-evergreen.js:363) at Zone.run (zone-evergreen.js:123) at zone-evergreen.js:857 at ZoneDelegate.invokeTask (zone-evergreen.js:399) at Object.onInvokeTask (core.js:41686)

rdlabo commented 3 years ago

Maybe you forgot web configuration. https://github.com/capacitor-community/facebook-login#web-configuration