开发者

How to use Facebook's FQL query using graph API?

Is there a way to use Facebook's FQL query using the current graph API? Or we still 开发者_StackOverflow社区have to use the legacy API?


Example of Graph API and 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
    }
);
  • http://developers.facebook.com/docs/reference/javascript/
  • http://developers.facebook.com/docs/reference/fql/

Example Of Rest API:

$data = $facebook->api( array( 'method' => 'fql.query', 'query' => 'SELECT shit FROM table...' ) );
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜