dist/evrythng.js
function _getUser(response) {

    if(response.status == 'connected') {

      // Return a Promise for the response with user details.
      return new Promise(function (resolve) {

        // Until here, `response` was FB's auth response. Here
        // we start to build bigger response by appending the Facebook's
        // user info in the `user` property.
        FB.api('/me', {
          fields: [
            'id',
            'first_name',
            'last_name' ,
            'gender',
            'link',
            'picture',
            'locale',
            'name',
            'timezone',
            'updated_time',
            'verified'
          ].toString()
        }, function (userInfo) {
          resolve(Utils.extend(response, { user: userInfo }));
        });

      });

    }else{

      // Return an already resolved promise.
      return new Promise(function (resolve) {
        resolve(response);
      });

    }

  }
function _getUser(response) {

    if(response.status == 'connected') {

      // Return a Promise for the response with user details.
      return new Promise(function (resolve) {

        // Until here, `response` was FB's auth response. Here
        // we start to build bigger response by appending the Facebook's
        // user info in the `user` property.
        FB.api('/me', {
          fields: [
            'id',
            'first_name',
            'last_name' ,
            'gender',
            'link',
            'picture',
            'locale',
            'name',
            'timezone',
            'updated_time',
            'verified'
          ].toString()
        }, function (userInfo) {
          resolve(Utils.extend(response, { user: userInfo }));
        });

      });

    }else{

      // Return an already resolved promise.
      return new Promise(function (resolve) {
        resolve(response);
      });

    }

  }
function _getUser ( response ) { if ( response . status == 'connected' ) { // Return a Promise for the response with user details. return new Promise ( function ( resolve ) { // Until here, `response` was FB's auth response. Here // we start to build bigger response by appending the Facebook's // user info in the `user` property. FB . api ( '/me' , { fields : [ 'id' , 'first_name' , 'last_name' , 'gender' , 'link' , 'picture' , 'locale' , 'name' , 'timezone' , 'updated_time' , 'verified' ] . toString ( ) } , function ( userInfo ) { resolve ( Utils . extend ( response , { user : userInfo } ) ) ; } ) ; } ) ; } else { // Return an already resolved promise. return new Promise ( function ( resolve ) { resolve ( response ) ; } ) ; } }
Fetch user info from Facebook if user is successfully connected.
Fetch user info from Facebook if user is successfully connected .