I use the Accounts-UI and Accounts-[Github/Twitter/Facebook/Google] packages which allows login with external service.
I modified Accounts.ui.config
with requestPermissions
, example:
Accounts.ui.config({
requestPermissions: {
github: ['user'],
facebook: ['user_photos']
}
});
But when I logged me with Github (for example), I get only my Github's name.
Same thing with others external services.
How to get more information, like the url of the profile picture?
You can use the Accounts.onCreateUser(fn) method to customize what gets stored when the user is created. Here is some sample code:
You have to make an additional call to the service in the callback function to grab any additional attributes. Currently, there's no way that I know of to plug directly into the method that Meteor uses to get the identity attributes.