我不断收到意外的变量错误。我要做的就是获取也是应用程序用户的朋友列表
$user_profile = $facebook->api('/me','GET');
$fql = 'SELECT uid, name, is_app_user, pic_square
FROM user WHERE uid
IN
(SELECT uid2 FROM friend WHERE uid1 = me())
AND is_app_user = 1'
$param = array(
'method' => 'fql.query',
'query' => $fql,
);
$fqlresult = $facebook->api($param);
$fqlresult = $this->facebook->api($param);
foreach($fqlresult as $result)
{
print_r($result);
print($result['name']);
}