2010-11-06 98 views
0

我已创建并托管在我的主页上,并通过IFrame包含在3个单独的站点中。投票结束后,我们希望轮询者能够通过Facebook在线分享他们的结果。 Facebook共享需要meta标签来操纵标题和描述。什么是完成这个目标的最好方法?使用Facebook共享在IFrame中自定义标题和描述

回答

0

为什么你不使用JSDK的stream.publish方法?

 FB.ui({ 
method: 'stream.publish', 
message:'your result description', 
attachment: { 
    name: title, 

    caption: "My Result", 
    media: [{ 
    type: 'image', 
    href: 'http://www.example.com/', 
    src: 'http://www.example/images/working.jpeg' 
    }] 
}, 
action_links: [{ 
    text: 'Join the Run', 
    href: 'http://www.example.com/' 
}], 
    user_message_prompt: 'Tell your friends about Get your percentage:' 
}); 

我觉得这也是与朋友分享的好方法。

相关问题