我在Iframe App中使用Facebook C#SDK版本5.2.1。我想将图像,链接或视频等内容发布到用户墙。
是否可以使用javascript SDK执行相同操作?
请参考我可以用于C#或javascript SDK的一些示例代码或链接..
答案 0 :(得分:0)
https://developers.facebook.com/docs/reference/javascript/
FB.ui(
{
method: 'feed',
message: 'getting educated about Facebook Connect',
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.'
),
link: 'http://www.fbrell.com/',
picture: 'http://www.fbrell.com/f8.jpg',
actions: [
{ name: 'fbrell', link: 'http://www.fbrell.com/' }
],
user_message_prompt: 'Share your thoughts about RELL'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);