通过facebook API分享图片

Tho*_*mas 5 facebook

有什么方法可以通过使用API​​与他的朋友分享用户的图像.

有些像stream.pubslish方法,因为它是通过FB.ui调用的

谢谢

daa*_*aku 8

也许是这样的:

var publish = {
  method: 'stream.publish',
  message: 'getting educated about Facebook Connect',
  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.'
    ),
    href: 'http://fbrell.com/',
    media: [
      {
        type: 'image',
        href: 'http://fbrell.com/',
        src: 'http://fbrell.com/f8.jpg'
      }
    ],
  },
  action_links: [
    { text: 'fbrell', href: 'http://fbrell.com/' }
  ],
  user_prompt_message: 'Share your thoughts about RELL'
};

FB.ui(publish);
Run Code Online (Sandbox Code Playgroud)

这是一个实例:http://fbrell.com/fb.ui/stream.publish