1
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '<?php echo $app_id; ?>',
status : true,
cookie : true,
xfbml : true
});
};
$('a').click(sendRequest);
function sendRequest() {
FB.ui({
method: 'apprequests',
message: 'Check out this application!',
title: 'Send your friends an application request',
link: 'http://developers.facebook.com/docs/reference/dialogs/',
});
return false;
}
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
我想發送消息:'Check out this application!'這個文本作爲鏈接像 看看這個應用程序!請問你能幫我一下嗎?發送郵件作爲Facebook應用程序中的鏈接