Google+ interactive post popup disappears after 0,5 sec

元气小坏坏 提交于 2019-12-11 20:05:56

问题


I'm creating this page http://kokas.x10.mx/?page_id=2 where I aim to send invitations through social media. The Google+ popup is my problem. Click on the google plus image, sign into google and the popup will magically disappear very very fast...you just get a glimpse of it for half a second. What causes this behavior? my html for the button is

<button
  id="googleInvite"
  class="g-interactivepost"
  data-contenturl="http://fray.it"
  data-clientid="xxxxxxx.apps.googleusercontent.com"
  data-cookiepolicy="single_host_origin"
  data-prefilltext="Join me on Fray and get help from amazing local people!"
  data-calltoactionlabel="INVITE"
  data-calltoactionurl="http://kokas.x10.mx/?page_id=2">
    <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/google.png" alt="Google+" /><span>Google+</span>
</button>   

Is it possible to check the javascripts that run while this is happening with the browser's dev tools? I have been following instructions here https://developers.google.com/+/web/share/interactive


回答1:


You can't use a call to action url that has a different domain from the content url. You need to be able to serve them both from the same domain.



来源:https://stackoverflow.com/questions/18730337/google-interactive-post-popup-disappears-after-0-5-sec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!