Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the logged in users image uri? #6

Closed
shopip opened this issue May 3, 2017 · 4 comments
Closed

How to get the logged in users image uri? #6

shopip opened this issue May 3, 2017 · 4 comments

Comments

@shopip
Copy link

shopip commented May 3, 2017

The global access token method has only name email and id set.But for sign in purpose,including the profile picture uri is necessary ,and i cant find any way of manually doing that as the SignInResult object is not available.

@maksim88
Copy link
Owner

maksim88 commented May 5, 2017

You are right, it is not available for now because I did not need it in my use cases.

I'll think about a more generic way to get the different fields before calling the sign up method.

@adrianokerbermenvia
Copy link

@maksim88
I tried the get methods from accessToken and I could't get the email field on any social network. There is a way to get that? Even more, there is a way to get the User full name e.g.: "John Travolta" not the username field e.g.: "john_travoltita"?

@maksim88
Copy link
Owner

@adrianokerbermenvia
Only g+ has a straightforward way to get the email of the user ( which gets passed inside their object they return to you).
With Facebook it is actually also possible (although not guaranteed) to return an email. But you have to request that permission. I could actually implement that quite easily.

With Twitter I also saw a possibility (although again not guaranteed because the user could have signed up with a phone eg).

I'm currently on vacation, but when I get back I can play around with it.

Sent from my Google Nexus 5X using FastHub

@maksim88
Copy link
Owner

@adrianokerbermenvia i implemented the email handling in v0.6.So So this should be returned when possible (when the third party is able to return it). Check the sample and Readme for more info if you'd like to try it.

Sent from my Google Nexus 5X using FastHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants