facebook stream.publish

facebook stream.publish,facebook,Facebook,我正在制作一个facebook应用程序,并用它在墙上分享一些东西 然而,对于1)Attachment链接和2)FB UI操作链接,当我单击其中一个时,它将在同一浏览器窗口中加载页面 我想在这些链接中添加一些类似target=“\u blank”的内容,以便在新选项卡中打开链接。 我知道这是可能的,因为当我在youtube上共享视频时,在操作链接和共享链接上都有target=“\u blank” 有人知道诀窍吗 我尝试过这样的代码(我插入了目标空格),但它没有在超链接中添加目标元素: FB.ui

我正在制作一个facebook应用程序,并用它在墙上分享一些东西

然而,对于1)Attachment链接和2)FB UI操作链接,当我单击其中一个时,它将在同一浏览器窗口中加载页面

我想在这些链接中添加一些类似target=“\u blank”的内容,以便在新选项卡中打开链接。 我知道这是可能的,因为当我在youtube上共享视频时,在操作链接和共享链接上都有target=“\u blank”

有人知道诀窍吗

我尝试过这样的代码(我插入了目标空格),但它没有在超链接中添加目标元素:

 FB.ui(
   {
     method: 'stream.publish',
     message: 'Check out this great app! http://apps.facebook.com/{your_app}',
     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', 
     'target': '_blank', 
            'src': 'http://test3.com/test.png', 
            'href': 'http://test3.com'}],



       href: 'http://test2.com',
       target: '_blank'

     },

     action_links: [
       { text: 'Code', href: 'http://github.com/facebook/connect-js' }
     ],
     user_message_prompt: 'Share your thoughts about Connect',
     target: '_blank'
   }

  );

有人知道youtube如何实现这些目标吗?我相信你要找的是

在方法“stream.publish”之后显示“popup”

目标是引用fb用户id来发布墙到墙的消息