EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 448 forks source link

Facebook Authentication Error #108

Open kaurag007ph opened 7 years ago

kaurag007ph commented 7 years ago

Hi Guys, I'm having trouble implementing facebook login authentication. I already follow this guides, but still no luck. https://firebase.google.com/docs/android/setup https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/AUTHENTICATION.md

This the output everytime I trigger the

  firebase.login({
    type: firebase.LoginType.FACEBOOK,
    scope: ['public_profile', 'email'] // optional: defaults to ['public_profile', 'email']
  }).then(
      function (result) {
        JSON.stringify(result);
      },
      function (errorMessage) {
        console.log(errorMessage);
      }
  )

image

EddyVerbruggen commented 7 years ago

Can you try it on a device/sim with play services installed?

kaurag007ph commented 7 years ago

I encountered that on my zenfone Z. While in Galaxy S7 Edge, the facebook permission page appear but I don't received any response after accepting the permission.

EddyVerbruggen commented 7 years ago

Doesn't the Zenfone Z have Google Play Services? I'd be very interested what playServicesStatus in this line evaluates to..

kaurag007ph commented 7 years ago

I updated my device googleplay service and works.