通过facebook API共享图像
是否有任何方法,我可以通过使用API与他的朋友共享用户的图像 例如stream.pubslish方法,因为它是通过FB.ui调用的通过facebook API共享图像,facebook,Facebook,是否有任何方法,我可以通过使用API与他的朋友共享用户的图像 例如stream.pubslish方法,因为它是通过FB.ui调用的 谢谢也许是这样的: var publish = { method: 'stream.publish', message: 'getting educated about Facebook Connect', attachment: { name: 'Connect', caption: 'The Facebook Connect Java
谢谢也许是这样的:
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);
下面是一个活生生的例子: