2
我正在尝试发布到墙上。当我添加链接,名称和标题等参数时它不起作用。使用Graph Api发布到用户墙上的问题
function graphStreamPublish(){
var body = 'This is a test feed';
var url = 'http://www.my-site.com';
var heading = 'Check out the link.';
var caption = 'I am trying to get it work.';
FB.api('/me/feed', 'post', { message: body, link: link, name: heading, caption: caption}, function(response) {
if (!response || response.error) {
alert('Error occured');
} else {
alert('Post ID: ' + response.id);
}
});
}
我明白链接,名称和标题是cceptable参数。我错过了什么。它只适用于消息参数。
我感谢你的帮助。
谢谢。