Skip to content

Instantly share code, notes, and snippets.

@fabianwilliams-zz
Created January 9, 2016 14:42
Show Gist options
  • Save fabianwilliams-zz/6c5d9a45a7af888e7cd2 to your computer and use it in GitHub Desktop.
Save fabianwilliams-zz/6c5d9a45a7af888e7cd2 to your computer and use it in GitHub Desktop.
//For Facebook
Strategy.prototype._convertProfileFields = function(profileFields) {
var map = {
'id': 'id',
'username': 'username',
'displayName': 'name',
'name': ['last_name', 'first_name', 'middle_name'],
'gender': 'gender',
'profileUrl': 'link',
'emails': 'email',
'photos': 'picture'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment