有没有办法使用当前的图形API使用Facebook的FQL查询?或者我们仍然需要使用旧版API?
答案 0 :(得分:1)
图谱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
}
);
Rest API示例:
$data = $facebook->api( array( 'method' => 'fql.query', 'query' => 'SELECT shit FROM table...' ) );