2010-07-25 60 views

回答

0

你需要設置attachment對象的media財產,是這樣的:

attachment: { 
    name: 'Connect', 
    caption: 'The Facebook Connect JavaScript SDK', 
    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.' 
    ), 
    media: [{ 
    type: 'image', 
    src: 'http://example.com/img.jpg', 
    href: 'http://example.com' 
    }], 
    href: 'http://github.com/facebook/connect-js' 
}, 

你可以閱讀更多關於附件here

+0

謝謝!我只有一個,誰認爲FB文檔sux? :) – John 2010-07-25 17:54:48

+0

@約翰沒有遇到一個人認爲它不:) – serg 2010-07-25 18:13:47