我从GitHub使用了这个Facebook好友选择脚本:
http://playground.thesedays.com/tdfriendselector/
,它工作得很好。但是我不知道如何在PHP中保存所选的输出朋友,因为README文件文档非常差。如果有人能帮忙,我将非常感激。
创建实例时,添加callbackSumbit选项和您想要使用的函数。
例如://the function we want to use as event listener on submission
alertFriends = function(selectedFriendIds) {
//whatever you want to do with the array of FB Friend Ids
alert('I got them');
}
mySelector = TDFriendSelector.newInstance({callbackSubmit : alertFriends});