2011-08-20 56 views
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應用程序中的鏈接

回答

0

在apprequest中是不可能放置鏈接,如果你甚至嘗試將它編碼爲html。

但是,如果您在fb:server-fbml中準備並請求表單,那麼您就成功了。

詳見
How can I include a link in a FB app request?