I have this code:
//Create Query
$params = array(
'method' => 'fql.query',
'access_token' => '$user->accessToken',
'query' => "SELECT uid, name FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = XXXXXXXX)",
);
//Run Query
$result = $facebook->api($params);
var_dump($result);
When i run the script containing above code, I don't get any result. Rather, i get the error Maximum execution time exceeded.
I have confirmed that the query is ok by checking it in Graph API Explorer. Moreover, I have also confirmed (by debugging) that the $user->accessToken contains correct access token with all the permissions given by user.
I have also tried using urlencode with my query string as well... without any success.
What am i doing wrong here?