Ejemplo n.º 1
0
 public function __construct($term, $date = false)
 {
     $auth = array('appId' => '1446511438910678', 'secret' => 'e4446a47a612b19e38cd16d9ac122638');
     $facebook = new Crawler_Facebook_Version($auth, '1.0');
     try {
         $this->response = $facebook->api('search', 'get', array('q' => $term));
     } catch (FacebookApiException $e) {
         error_log($e);
     }
     return $this->response;
 }
Ejemplo n.º 2
0
 public function __construct($config = array(), $version = '2.0')
 {
     $version_dir = 'v' . $version . '/';
     self::$DOMAIN_MAP = array_merge(parent::$DOMAIN_MAP, array('graph' => 'https://graph.facebook.com/' . $version_dir));
     parent::__construct($config);
 }