27 $this -> mApiID =
getParam(
'ch_facebook_connect_api_key');
28 $this -> mApiSecret =
getParam(
'ch_facebook_connect_secret');
29 $this -> sPageReciver = CH_WSB_URL_ROOT . $this ->
getBaseUri() .
'login_callback';
31 $this -> sSessionUid =
'facebook_session';
32 $this -> sSessionProfile =
'facebook_session_profile';
34 $this -> sEmailTemplatePasswordGenerated =
't_fb_connect_password_generated';
35 $this -> sDefaultTitleLangKey =
'_ch_facebook';
37 $this -> sRedirectPage =
getParam(
'ch_facebook_connect_redirect_page');
39 $this -> bAutoFriends =
'on' ==
getParam(
'ch_facebook_connect_auto_friends')
43 $this -> aFaceBookReqParams = array(
44 'scope' =>
getParam(
'ch_facebook_connect_extended_info')
45 ?
'email,public_profile,user_friends,user_birthday,user_about_me,user_hometown,user_location'
46 :
'email,public_profile',
47 'redirect_uri' => $this -> sPageReciver,
50 $this -> sFaceBookFields =
getParam(
'ch_facebook_connect_extended_info')
51 ?
'name,email,first_name,last_name,gender,birthday,bio,hometown,location'
52 :
'name,email,first_name,last_name';