我想在成功登录后发布在用户的墙上,但我不想显示提要对话框弹出窗口以请求发布权限。我想默默地发布。我曾经看过FB.api提供了一种发布方式,但它不会像锚标签那样呈现html标签。这是我的代码
function postToFeed(){
// calling the API ...
var obj = {
method: 'feed',
redirect_uri: 'url to website',
link: 'link to website',
picture: 'live picture url',
name: "",
caption: "",
description:""
};
function callback(response) {
document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
}
FB.ui(obj, callback);
}