No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Facebook Login With Cordova

    Help
    2
    2
    1030
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      index325 last edited by

      Hello.

      I’m having an issue with cordova-plugin-facebook4 plugin for cordova. I’ve tried everything to make it run on quasar, but without success. Somebody can tell me if in quasar exists a plugin or a method to make it work?

      I’m tring just like that
      0_1533734664322_4759375b-8028-4791-9c40-f0c81523cfdc-image.png

      But, when i start the application on my android, it tells me that login method cannot be read because the facebookConnectPlugin is undefined. But, how i define that?

      (My facebook app is configured on developers page on facebook and the ID is configured as well as you can see bellow)

      export function loadFbSdk (appId, version) {
      return new Promise(resolve => {
      window.fbAsyncInit = function () { // eslint-disable-line func-names
      FB.init({
      appId: ‘MY_APP_ID’,
      xfbml: true,
      version: ‘v2.8’,
      cookie: true
      })
      FB.AppEvents.logPageView()
      resolve(‘SDK Loaded!’)
      };
      (function (d, s, id) { // eslint-disable-line func-names
      const fjs = d.getElementsByTagName(s)[0]
      if (d.getElementById(id)) { return }
      const js = d.createElement(s)
      js.id = id
      js.src = ‘//connect.facebook.net/en_US/sdk.js’
      fjs.parentNode.insertBefore(js, fjs)
      }(document, ‘script’, ‘facebook-jssdk’))
      })
      }

      1 Reply Last reply Reply Quote 0
      • Rodrigo Alves
        Rodrigo Alves last edited by

        Look this: https://medium.com/@tobias.mesquita/quasar-framework-cordova-usando-o-facebook-para-autenticação-c72219590444

        1 Reply Last reply Reply Quote 0
        • First post
          Last post