Resio sam problem ali kako da instairam cUrl jer je verovatno to problem kad mi izadje greska:
Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' in C:\wamp\www\
da li sa wamp serverom dolazi i php i curl ili kako to vec ide, molim nekog da mi pojasni
uglavnom ovo je kod:
Citat:
public function _initFacebookApi() {
$request = JO_Request::getInstance();
if($request->getModule() == 'install') {
return'';
}
$facebook = new WM_Facebook(array(
'appId' => JO_Registry::get('oauth_fb_key'),
'secret' => JO_Registry::get('oauth_fb_secret'),
'cookie' => true,
'session' => true
// 'domain' => JO_Request::getInstance()->getBaseUrl()
));
// $session = $facebook->getSession();
if($request->getQuery('session')) {
$facebook->setSession( JO_Json::decode(html_entity_decode($request->getQuery('session')), true) );
} else if( JO_Session::get('user[facebook_session]') ) {
$facebook->setSession( unserialize(JO_Session::get('user[facebook_session]')) );
}
return $facebook;
}
|
a greska je na liniji:
$facebook = new WM_Facebook(array(...