var social = {
  facebook: require('./FacebookSocial')
};

module.exports = {
  /**
   * Create instance of social service
   * @param {String} type
   * @param {Object} config
   * @returns {*}
   */
  create: function (type, config) {
    if (social[type.toLowerCase()] instanceof Function) {
      return new social[type.toLowerCase()](config);
    } else {
      throw new Error('Unrecognized type');
    }
  },

  FacebookSocial: social.facebook
};

var social = {
  facebook: require('./FacebookSocial')
};

module.exports = {
  /**
   * Create instance of social service
   * @param {String} type
   * @param {Object} config
   * @returns {*}
   */
  create: function (type, config) {
    if (social[type.toLowerCase()] instanceof Function) {
      return new social[type.toLowerCase()](config);
    } else {
      throw new Error('Unrecognized type -> ' + type);
    }
  },

  FacebookSocial: social.facebook
};

Add type logging on creating unknown social type
Add type logging on creating unknown social type
