2011-08-25 72 views

回答

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>