capacitor-community / facebook-login

Facebook Login support
MIT License
103 stars 54 forks source link

Is it possible to retrieve the current logged-in profile from the plugin? #23

Closed vildhjarta8 closed 3 years ago

vildhjarta8 commented 3 years ago

Is your feature request related to a problem? Please describe. Our backend requires the email and assigns a Facebook access token to an existing user using the email. Sadly, we cannot change this behavior because we don't have versioning right now and have a couple of clients who can fetch the current FB user without difficulties.

Describe the solution you'd like Does the behavior where the plugin returns, for example, the result of the Graph API to the /me call after the sign-in and/or provide the method to call it manually

Describe alternatives you've considered It looks like if contributors will decide that this is out of the plugin scope, maybe another plugin to perform the Graph API requests required.

PS. I can try to create PR if this kind of functionality will be OK for this plugin.

Thank you.