0
如果我使用下面,讓我的朋友生日:可能通過圖表api獲取排序Facebook朋友的生日嗎?
$facebook->api('/me/friends/?fields=id,first_name,last_name,birthday,picture');
是有可能通過降生日排序結果? (最早最早)
謝謝!
如果我使用下面,讓我的朋友生日:可能通過圖表api獲取排序Facebook朋友的生日嗎?
$facebook->api('/me/friends/?fields=id,first_name,last_name,birthday,picture');
是有可能通過降生日排序結果? (最早最早)
謝謝!
可以完成,通過使用FQL請求:
$facebook->api('/me/fql?q=SELECT+uid,first_name,last_name,birthday_date,pic+FROM+user+WHERE+uid+IN+(SELECT+uid2+FROM+friend+WHERE+uid1+=+me())+order+by birthday_date');
請記住,不是每個人都提供了一個生日,birthday_date值可以是空。