我正在尝试更改帖子的“说点什么...”文本部分以提供 FB.ui 的功能
所有其他显示,但它不会更改文本区域中的文本。
我的代码如下:
function postToFeed() {
// calling the API ...
var obj = {
method: 'feed',
link: 'http://solarhelper.net',
picture: 'http://solarhelper.net/icon',
name: 'Find your result using Solar Helper',
caption: 'Click the link to download the app or get your result online.',
description: 'I could save ' + incomeYear25 + ' over 25 years and save ' + totalCO2Level + ' tonnes of CO2!',
message: 'Testing'
};
function callback(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
FB.ui(obj, callback);
}
谢谢你的帮助