开发者

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

开发者 https://www.devze.com 2023-02-13 15:49 出处:网络
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:

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

精彩评论

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