Skip to content

Conversation

@jselesan
Copy link

@jselesan jselesan commented Sep 3, 2018

I found this module very useful, but in my current project I need to distinct first name and last name. This pull request contains the changes needed to get that data from the user profile

user.email = response.email;
user.token = response.token;
user.firstName = response.first_name;
user.lastName = response.lastName;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be last_name, at least for v3.1 api.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll fix it

@jselesan
Copy link
Author

Fixed!

@jselesan
Copy link
Author

Could you please merge this pull request? It's is very useful for me

@MikeDabrowski
Copy link

MikeDabrowski commented Nov 13, 2018

If its very useful you can always add this manually to your project as I did. I improved your idea by adding a way to specify which fields you want to get from ie. fbApi. Take a look here, maybe it will help you.
https://github.com/MikeDabrowski/angular-6-social-login/commits/library-custom-options

@jselesan
Copy link
Author

Yes, sure, but I didn't succeed in installing the package from github...

npm i https://github.com/MikeDabrowski/angular-6-social-login.git

does not work

@MikeDabrowski
Copy link

That won't work. By manual install I mean download zip, unzip it and move to your project. I wanted to publish my mod as npm package but failed at some point. But I can assure you, manually copying it to your project will work.

@jselesan
Copy link
Author

jselesan commented Nov 13, 2018 via email

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

Successfully merging this pull request may close these issues.

2 participants