这是我的代码
$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)”;