那麼最終這就是答案,使生活方便,peasy,希望它能幫助別人:
第1步:複製並粘貼以下代碼 - >用您自己的Facebook開發人員ID更改appId。
<p><fb:login-button autologoutlink="true"></fb:login-button></p>
<!-- <p><fb:like></fb:like></p>-->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {FB.init({appId: '133500<--put your-->developerid', status: true, cookie: true,xfbml: true});FB.Event.subscribe('auth.sessionChange', function(response) {if (response.session) {FB.ui({method: 'apprequests', title:'Invite your friends to my cool site!', message: 'You have been invited to this cool site'});} else {}}); };(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
第2步:點擊Facebook圖標,登錄並用您自己的信件邀請他人?
對不起,我沒有清楚。到底想要達到什麼?你需要什麼jQuery和PHP的? FB有一套XFBML用於所有工作,看看開發者頁面http://developers.facebook.com/docs/ – 2011-01-30 10:59:41