2012-10-28 72 views

回答

2

所有你需要做的,這是閱讀以下內容:

http://developers.facebook.com/docs/reference/javascript/

從上面:

下面的示例使用FB.ui()方法來調用飼料對話框來允許用戶張貼鏈接到他們的時間表:

FB.ui(
{ 
    method: 'feed', 
    name: 'The Facebook SDK for Javascript', 
    caption: 'Bringing Facebook to the desktop and mobile web', 
    description: (
     'A small JavaScript library that allows you to harness ' + 
     'the power of Facebook, bringing the user\'s identity, ' + 
     'social graph and distribution power to your site.' 
    ), 
    link: 'https://developers.facebook.com/docs/reference/javascript/', 
    picture: 'http://www.fbrell.com/public/f8.jpg' 
}, 

function(response) 
{ 
    if (response && response.post_id) 
    { 
     alert('Post was published.'); 
    } 
    else 
    { 
     alert('Post was not published.'); 
    } 
} 

);

相關問題