Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用Facebook';使用图形API的FQL查询?_Facebook_Facebook Fql - Fatal编程技术网

如何使用Facebook';使用图形API的FQL查询?

如何使用Facebook';使用图形API的FQL查询?,facebook,facebook-fql,Facebook,Facebook Fql,有没有办法使用当前的graph API使用Facebook的FQL查询?或者我们仍然必须使用遗留API 图形API和JavaScript示例: FB.api( { method: 'fql.query', query: 'SELECT uid, first_name, last_name FROM user WHERE uid = ' + someUid }, function(data) { // do something with the response

有没有办法使用当前的graph API使用Facebook的FQL查询?或者我们仍然必须使用遗留API

图形API和JavaScript示例:

FB.api(
    {
method: 'fql.query',
query: 'SELECT uid, first_name, last_name FROM user WHERE uid = ' + someUid
    },
    function(data) {
  // do something with the response
    }
);
$data = $facebook->api( array( 'method' => 'fql.query', 'query' => 'SELECT shit FROM table...' ) );
Rest API示例:

FB.api(
    {
method: 'fql.query',
query: 'SELECT uid, first_name, last_name FROM user WHERE uid = ' + someUid
    },
    function(data) {
  // do something with the response
    }
);
$data = $facebook->api( array( 'method' => 'fql.query', 'query' => 'SELECT shit FROM table...' ) );

图形API和JavaScript示例:

FB.api(
    {
method: 'fql.query',
query: 'SELECT uid, first_name, last_name FROM user WHERE uid = ' + someUid
    },
    function(data) {
  // do something with the response
    }
);
$data = $facebook->api( array( 'method' => 'fql.query', 'query' => 'SELECT shit FROM table...' ) );
Rest API示例:

FB.api(
    {
method: 'fql.query',
query: 'SELECT uid, first_name, last_name FROM user WHERE uid = ' + someUid
    },
    function(data) {
  // do something with the response
    }
);
$data = $facebook->api( array( 'method' => 'fql.query', 'query' => 'SELECT shit FROM table...' ) );