function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->mApiID = getParam('bx_facebook_connect_api_key');
     $this->mApiSecret = getParam('bx_facebook_connect_secret');
     $this->sPageReciver = BX_DOL_URL_ROOT . $this->getBaseUri() . 'login_callback';
     $this->sSessionUid = 'facebook_session';
     $this->sSessionProfile = 'facebook_session_profile';
     $this->sEmailTemplatePasswordGenerated = 'bx_facebook_password_generated';
     $this->sDefaultTitleLangKey = '_bx_facebook';
     $this->sRedirectPage = getParam('bx_facebook_connect_redirect_page');
     $this->sProfilesModule = getParam('bx_facebook_connect_module');
     $this->isAlwaysConfirmEmail = (bool) getParam('bx_facebook_connect_confirm_email');
     $this->isAlwaysAutoApprove = (bool) getParam('bx_facebook_connect_approve');
     $this->bAutoFriends = 'on' == getParam('bx_facebook_connect_auto_friends');
     $this->aFaceBookReqParams = array('scope' => getParam('bx_facebook_connect_extended_info') ? 'email,public_profile,user_friends,user_birthday,user_about_me,user_hometown,user_location' : 'email,public_profile,user_friends', 'redirect_uri' => $this->sPageReciver);
     $this->sFaceBookFields = getParam('bx_facebook_connect_extended_info') ? 'name,email,first_name,last_name,gender,birthday,bio,hometown,location' : 'name,email,first_name,last_name,gender';
 }
Exemple #2
0
 function __construct($aModule)
 {
     parent::__construct($aModule);
     $this->sApiID = getParam('bx_tricon_api_key');
     $this->sApiSecret = getParam('bx_tricon_secret');
     $this->sApiUrl = trim(getParam('bx_tricon_url'), '/') . (getParam('bx_tricon_url_rewrite') ? '/m/oauth2/' : '/modules/?r=oauth2/');
     $this->sSessionUid = 'tricon_session';
     $this->sSessionProfile = 'tricon_session_profile';
     $this->sEmailTemplatePasswordGenerated = 'bx_tricon_password_generated';
     $this->sDefaultTitleLangKey = '_bx_tricon';
     $this->sRedirectPage = getParam('bx_tricon_redirect_page');
     $this->sProfilesModule = getParam('bx_tricon_module');
     $this->isAlwaysConfirmEmail = (bool) getParam('bx_tricon_confirm_email');
     $this->isAlwaysAutoApprove = (bool) getParam('bx_tricon_approve');
     $this->bAutoFriends = 'on' == getParam('bx_tricon_auto_friends');
     $this->sPageStart = BX_DOL_URL_ROOT . $this->getBaseUri() . 'start';
     $this->sPageHandle = BX_DOL_URL_ROOT . $this->getBaseUri() . 'handle';
 }