tags:

views:

114

answers:

1

Simple question..

How can I run a query from FQL? Im using Graph API and PHP.

thank you.

A: 

Assuming you are using PHP Facebook API:

$fql    =   "select name from user where uid=me()";
$param  =   array(
       'method'     => 'fql.query',
        'query'     => $fql,
      'callback'    => ''
);
$fqlResult   =   $facebook->api($param);
serg