diff --git a/lib/profile.js b/lib/profile.js index ef00860..6c7d0e9 100644 --- a/lib/profile.js +++ b/lib/profile.js @@ -20,6 +20,7 @@ exports.parse = function(json) { profile.gender = json.gender; profile.profileUrl = json.link; + profile.ageRange = json.age_range; if (json.email) { profile.emails = [{ value: json.email }]; diff --git a/lib/strategy.js b/lib/strategy.js index f7881b1..7bd4647 100644 --- a/lib/strategy.js +++ b/lib/strategy.js @@ -215,7 +215,8 @@ Strategy.prototype._convertProfileFields = function(profileFields) { 'birthday': 'birthday', 'profileUrl': 'link', 'emails': 'email', - 'photos': 'picture' + 'photos': 'picture', + 'ageRange': 'age_range' }; var fields = [];