我想改變「說些什麼...」文本部分的帖子給FB.ui的功能的功能Facebook發佈到牆JavaScript不允許我改變「說點什麼」文本
所有其他顯示,但它不會更改文本區域中的文本。
我的代碼如下:
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);
}
感謝您的幫助
我已更新問題以顯示整個功能 –