gpt4 book ai didi

facebook - 通过 facebook API 分享图片

转载 作者:行者123 更新时间:2023-11-30 05:24:00 24 4
gpt4 key购买 nike

有什么方法可以通过 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com