谷歌加自定义共享按钮回调
Google plus custom share button callback
当用户向自定义共享按钮共享内容时,是否有方法添加回调?
目前,我在弹出窗口中打开一个共享对话框:
<a data-height="600" data-title="Google+" class="popup" href="https://plus.google.com/share?url=MY_URL">Share</a>
$('.popup').click(function(event) {
var width = 575,
height = $(this).data('height'),
left = ($(window).width() - width) / 2,
top = ($(window).height() - height) / 2,
url = this.href,
opts = 'status=1' +
',width=' + width +
',height=' + height +
',top=' + top +
',left=' + left;
window.open(url, $(this).data('title'), opts);
event.preventDefault();
});
在文档中:https://developers.google.com/+/web/share/他们说,当使用他们的jsapi时,我们可以指定带数据的回调。找不到使用自定义共享链接的方法。
似乎没有办法做到这一点。这个确切的功能请求存在一个悬而未决的问题。
https://code.google.com/p/google-plus-platform/issues/detail?id=232
考虑主演和支持它,但它已经上映三年了。谷歌似乎并没有努力实现它。
相关文章:
- 如何在javascript中添加带有回调函数的按钮点击事件作为window.conf
- 如何在调用回调之前禁用按钮
- Bootbox:取消对话框后的回调功能/点击'X'按钮
- Angular Js 尝试从主按钮回调动态更改模态文本并且不起作用
- 未通过单击按钮调用JavaScript回调
- 返回按钮回调函数在特定情况下失败或未启动
- 类似FaceBook的按钮回调不起作用
- Facebook页面的Facebook“喜欢”按钮,但带有回调
- 脸书登录按钮回调函数
- 单击按钮后显示回调
- G+ 登录按钮回调绑定两次
- IE issue-使用复选框/单选按钮时,jQuery.change()不会触发回调
- 自定义Google加号按钮回调
- 每次加载页面时都运行按钮回调函数
- 谷歌加自定义共享按钮回调
- 如何检索用户的详细信息喜欢按钮回调函数在facebook
- Facebook喜欢按钮回调javascript警告框
- 尝试配置YouTube订阅按钮回调
- Reddit按钮回调函数
- Safari搜索字段取消按钮回调