我使用這個查詢爲什麼結果我得到的所有的朋友,而不是隻10friends
$FQLQuery = 'SELECT uid, sex, pic_square FROM user WHERE uid in ('.implode(", ", $man).')';
獲得UID,pic_squre和10friends的性別,其是由用戶 選擇和他們的用戶ID存儲在$ man []一個數組
但是當我看到結果它是選擇一個用戶的所有朋友而不是朋友 只有用戶選擇 什麼是錯的?
這是我得到的所有朋友
[12] => Array
(
[uid] => 100003033556875
[sex] => female
[pic_square] => http://profile.ak.fbcdn.net/hprofile-ak-snc4/274747_1000
03033556875_306033850_q.jpg
)
這些都是$男子值 100002131686032,1602023867,100000297352382,100000501703505,1257699872,100003033556875 ,100002474721536,1075440919,10000001676304188,100000925253290 –
我剛剛試過你的查詢,它工作正常:https://developers.facebook.com/tools/explorer?method=GET&path=fql%3Fq%3DSELECT%20uid%2C%20sex%2C %20pic_square%20FROM%20user%20 WHERE%20uid%20in%20(100002131686032%2C%201602023867%2C%20100000297352382%2C%20100000501703505%2C%201257699872%2C%20100003033556875%2C%20100002474721536%2C%201075440919%2C%20100001676304188%2C%20100000925253290)%3B –