NativeScript / nativescript-facebook

NativeScript plugin, wrapper of native Facebook SDK for Android and iOS
Apache License 2.0
79 stars 50 forks source link

NS vue login event not working #186

Closed munkh-altai closed 5 years ago

munkh-altai commented 5 years ago

Facebook login success but not call login event method.

<FacebookLoginButton @login="onLogin" >

and custom login not working error NSInvalidArgumentException

zbranzov commented 5 years ago

@munkh-altai Please fill in the create issue template and add steps to reproduce. Does it happen with the current vue demo in the repository?

munkh-altai commented 5 years ago

I am tired with IOS. Also i was tried with https://github.com/NativeScript/nativescript-facebook/tree/master/demo-vue. But same problem. Facebook login success but not redirect to Home page and custom login App crashing.

Did you check Demo App on Real Device ?

tgpetrov commented 5 years ago

@munkh-altai
The crash with the custom login is also reported here and has been fixed. Regarding the issue with the FacebookLoginButton, I managed to reproduce it only with the following steps:

  1. Run a demo app (ts, ng or vue) login then logout - callback is called
  2. Run another demo app (if you run vue in the previous step, run ts or ng this time) - callback is NOT called

I believe this is related to the fact that all demo apps share the same app id and the Facebook SDK has troubles identifying the correct app to give the access token once you login. Can you confirm that you are having the issue when running only one of the demo apps or you are also running more than one app with the same id?

P.S. In order to confirm that the callback is called, on this line I added:

console.log('SUCCESSFUL LOG IN!!!');
elena-p commented 5 years ago

closing due to inactivity