Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Facebook login native promise available but not working

$
0
0

@ondonda wrote:

Hi , i'm facing a little issue with facebook login plugin (with a lot of another plugin too)
so i installed ionic-native and the plugin with $ ionic plugin add cordova-plugin-facebook4

and tried to run it into my app like this

  fblogin(){
    this.platform.ready().then(() => {
      Facebook.login(["email, public_profile"]).then((result) => {
        this.rootRef.$authWithOAuthToken("facebook", result.access_token).then((user) => {
          console.log(user)
        })
      })
    })
  }

when i click the button , i have error message

Native: tried calling Facebook.login, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator

the plugin dont work in simulator or devices , anyone installed facebook plugin in his app?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>