0
私は私のウェブサイトからgoogleとコメントを投稿する必要があります。私は1つのスクリプトを使ってテキストをうまく処理していました。しかし、私はイメージを表示したい。Google +動的コンテンツとの共有image javascript
私は、次のコードを使用している: -
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'http://apis.google.com/js/client:plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
var cid = 'My console developer id .apps.googleusercontent.com';
var options = {
contenturl: 'http://www.google.com',
contentdeeplinkid: '/pages',
clientid: cid,
cookiepolicy: 'single_host_origin',
prefilltext: 'Hai happy friday<img src="fgdhj"/>',
calltoactionurl: 'http://www.google.com'
};
// Call the render method when appropriate within your app to display
// the button.
gapi.interactivepost.render('sharePost', options);
はどうやって画像を表示することができますか?私を助けてください。