NativeScript / nativescript-facebook

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

is it possible to make login event create user name and user ID in firebase firestore #155

Closed job111 closed 5 years ago

job111 commented 5 years ago

Make sure to check the demo app(s) for sample usage

Make sure to check the existing issues in this repository

If the demo apps cannot help and there is no issue for your problem, tell us about it

Please, ensure your title is less than 63 characters long and starts with a capital letter.

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

Describe the steps to reproduce it.

Is there any code involved?

elena-p commented 5 years ago

Hi @job111,

This plugin wraps some of the functionalities provided by the native Facebook SDK for Android and iOS. For any Firebase related operations you could use this Firebase plugin, which enables you to use Firestore.

Here is how you can get facebook user's name and id:

  1. On login, in the response, you receive the access token of the user (you can check it in the demo app).

  2. You can then use the access token to get facebook's user name and id as shown here in the demo app.