有什么方法可以通过 API 与他的 friend 分享用户的图像。
类似于 stream.pubslish 方法,因为它是通过 FB.ui 调用的
谢谢
最佳答案
也许是这样的:
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);
这是一个活生生的例子:http://fbrell.com/fb.ui/stream.publish
关于facebook - 通过 facebook API 分享图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3229477/