Google Plus在弹出窗口中共享 [英] Google Plus share in a popup

查看:81
本文介绍了Google Plus在弹出窗口中共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试在网站上构建Google+共享功能,就像您在stackoverflow上看到的关于此问题的功能一样.当您单击该Google+按钮的一个问题时,它将打开一个新的URL窗口,如下所示: https://plus.google.com/share?url=http://www.stackoverflow.com

I'm trying to build a Google+ share feature on a website just like the one you see on questions here at stackoverflow. When you click that Google+ button an a question it opens a new window to a URL like this: https://plus.google.com/share?url=http://www.stackoverflow.com

我已经对此进行了试验,发现由于某种原因,它仅适用于少数几个域,包括stackoverflow.com.例如google.com: https://plus.google.com /share?url=http://www.google.com 或eff.org:

I've experimented with this and found that for some reason it only works for a few domains, including stackoverflow.com. For example google.com: https://plus.google.com/share?url=http://www.google.com or eff.org: https://plus.google.com/share?url=https://www.eff.org

其他域,例如: https://plus.google. com/share?url = https://www.cnn.com 或: https://plus.google.com/share?url=https://www.revision3.com 只需重定向到我的Google+主页.

Other domains like: https://plus.google.com/share?url=https://www.cnn.com or: https://plus.google.com/share?url=https://www.revision3.com just redirect to my Google+ homepage.

我在这里想念什么?为什么某些域名有效,而另一些无效?在工作的页面上是否存在一些元数据,而在那些页面上却没有?还是那些有效的域被添加到我不知道的某些Google+ Beta程序中?

What am I missing here? Why do some domains work and others don't? Is there some metadata present on the pages that work that is missing from the ones that don't? Or perhaps those domains that work were added to some Google+ beta program that I'm not aware of?

推荐答案

看来,所有域的新共享URL现已生效.移动黑客"似乎不再起作用,而是类似以下内容: https://plus. google.com/share?url=http://favo.rs 可以

It looks like the new share URL is live now for all domains. The mobile 'hack' no longer appears to work, but something like this: https://plus.google.com/share?url=http://favo.rs does

这篇关于Google Plus在弹出窗口中共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆