2010-07-25 7 views
0

Facebook API를 처음 사용하면서 fb.ui http://developers.facebook.com/docs/reference/javascript/FB.ui에 관한 페이지 만 발견되었습니다. 새 connect-js을 사용하고, 내 텍스트에 넣을 때 <img src="/sa/asd/asd.jpg" /> 슬래시는 \/으로 이스케이프됩니다. 도와주세요! 당신은 첨부 파일 here에 대한 자세한 내용을보실 수 있습니다img 태그를 stream.publish 메소드에 붙여 넣을 수있는 방법은 무엇입니까?

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' 
}, 

:

답변

0

당신은 attachment 개체의 media 재산 같은 것을 설정해야합니다.

+0

고마워요! FB 문서가 sux라고 누가 생각 하나? :) – John

+0

@ 존 그것이 생각하지 않는 사람을 만난 적이 없다 :) – serg

관련 문제