我正在使用此查询
$FQLQuery = 'SELECT uid, sex, pic_square FROM user WHERE uid in ('.implode(", ", $man).')';
获取用户选择的uid,pic_squre和10个朋友的性别 并且他们的用户ID存储在$ man []数组
中但是当我看到结果时,它会选择用户的所有朋友而不是朋友 仅由用户选择 怎么了?
这是我为所有朋友所获得的
[12] => Array
(
[uid] => 100003033556875
[sex] => female
[pic_square] => http://profile.ak.fbcdn.net/hprofile-ak-snc4/274747_1000
03033556875_306033850_q.jpg
)
答案 0 :(得分:-1)
您应该添加LIMIT子句
$FQLQuery = 'SELECT uid, sex, pic_square FROM user WHERE uid in ('.implode(", ", $man).') LIMIT 10';