这是我的代码
$ids = join(", ",$man);
if ( !isset($_SESSION[$appID.'_FQLResult']) ) {
$FQLQuery = "SELECT uid, sex, pic_square FROM user WHERE uid in ($ids)";
$FQLResult = $facebook->api(array( 'method' => 'fql.query', 'query' => $FQLQuery, 'access_token'=>$fbme['access_token'] ));
$_SESSION[$appID.'_FQLResult'] = $FQLResult;
} else {
$FQLResult = $_SESSION[$appID.'_FQLResult'];
}
echo $ids;
echo $FQLResult;
当我回显 $ids 时出现错误,它显示了 $ids 的值,但是当我回显 $FQLResult 时,只显示“数组”写在这个 fql 查询中有什么问题?我该如何解决这个问题?我认为这个查询有问题 $FQLQuery = "SELECT uid, sex, pic_square FROM user WHERE uid in ($ids)";