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_hometown,user_location' : 'email,public_profile', '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'; } } /** @} */