1: <?php
2: /**
3: * Execute FQL queries
4: *
5: * Copyright 2009-2012 Horde LLC (http://www.horde.org/)
6: *
7: * @author Michael J. Rubinsky <mrubinsk@horde.org>
8: * @category Horde
9: * @package Service_Facebook
10: */
11: class Horde_Service_Facebook_Fql extends Horde_Service_Facebook_Base
12: {
13: /**
14: * Run a FQL query, optionally including the current session_key.
15: *
16: * http://developers.facebook.com/documentation.php?v=1.0&doc=fql
17: *
18: * @param string $query The FQL to run.
19: *
20: * @return array Hashes containing results.
21: */
22: public function run($query)
23: {
24: $params = array('query' => $query);
25:
26: return $this->_facebook->callMethod('facebook.fql.query', $params);
27: }
28:
29: }