2010-07-25 6 views

ответ

0

Вы должны установить media свойства attachment объекта, что-то вроде:

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 docs sux? :) – John

+0

@John Не встречал кого-то, кто думает, что это не так :) – serg

Смежные вопросы