javascript - Google interactive post button doesn't render -
the share button appears when use gapi.plusone.render('gshare', self.gshareoptions);
where gapi.interactivepost.render('gshare', self.gshareoptions);
button doesn't appear @ all.
i using script follows:
<script > window.___gcfg = { lang: 'en-us', parsetags: 'explicit' }; </script> <script src="https://apis.google.com/js/platform.js" async defer></script>
and on loading button explicitly:
self.gshareoptions = { contenturl: 'https://plus.google.com/pages/', contentdeeplinkid: '/pages', clientid: '981176744389-jbetl01qporsd8v8t83l9umov4gcai2f.apps.googleusercontent.com', cookiepolicy: 'single_host_origin', prefilltext: 'create google+ page too!', calltoactionlabel: 'create', calltoactionurl: 'http://plus.google.com/pages/create', calltoactiondeeplinkid: '/pages/create' }; self.on('updated', function(){ gapi.plusone.render('gshare'); //gapi.interactivepost.render('gshare', self.gshareoptions); });
Comments
Post a Comment