0
是否有构建自定义请求对话框以及发送所选用户标识和应用请求的方式。我不想使用多朋友选择器表单。构建应用内请求对话框
是否有构建自定义请求对话框以及发送所选用户标识和应用请求的方式。我不想使用多朋友选择器表单。构建应用内请求对话框
这里的这个功能应该为您提供向一个人发送请求的能力。
<script>
function sendFriendInvite(message,title,to,data){
FB.ui({method: 'apprequests',
to: to,
message: message,
title: title,
data: data
},
function(response) {
if (response && response.request_ids) {
//Sent!
} else {
//Not Sent
}
});
}
</script>
<a onclick="sendFriendInvite('Here is an invite','Send to Invite to Friend', 123456);">Send request to friend 123456</a>