簡體   English   中英

Facebook在牆上張貼了JavaScript,不允許我更改“說點什么……”文本

[英]Facebook post to wall JavaScript not allowing me to change the “Say something…” text

我正在嘗試更改帖子的“說點什么...”文本部分以提供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);

  }

謝謝你的幫助

不幸的是,您不是,並且您將無法更改對話框的這一部分。

我想這種預防應該限制事件更多的垃圾郵件嗎?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM