我有一个网站,在那里用户注册。在此之后,他们得到了一个伟大的产品提供,我想让他们使用从我的网站“谷歌连接按钮”,并邀请他们的朋友和联系人通过谷歌网络。
我怎么能这么做?
跟进
我发现的样本
例:http://www.dumpsquestions.com/testing/wp-content/themes/ModulaBlueGiant/open/example.php
装置上写着:
Openinviter安装指南。
感谢您下载OpenInviter通用软件包。本文档将指导您完成安装过程。
A:所需经费:
Your server will need to have PHP5 installed with DOMDocument support and either cURL or WGET.B:安装:
1. Extract the contents of the openinviter.tar.gz file you have just downloaded.
Note: tar -xzvf openinviter.tar.gz
2. Upload the extracted files to your webserver (subfolder is highly advised).
3. Run postinstall.php (http://yourdomain/openinviter_dir/postinstall.php)
You may encounter the following errors:
i) The cookie storing folder if not writable. (Change the cookie folder or modify it's permisions.)
ii) Php DOM extension is not installed. (Install dom extension for php)
iii) You don't have curl or wget installed. (Install curl or wget)
You may encounter the following warnings:
i) A plugin does not work properly. (Your server has either a firewall or there is a connectivity error)
Note: You have to fix all the errors or openinviter will probably not work.
Note*: You can't run postinstall.php again for 2 minutes.
4. Edit config.php to suit your needs.
5. Delete postinstall.php
6. Run example.php (http://yourdomain/openinviter_dir/example.php) and try to fetch your contacts.
Note: example.php is modifiable but keep in mind the structure of the file.另外,它提供了一个PDF如何使用PHP做它,出色的工作已经做了尊重亲吻(保持它简单愚蠢!!)
发布于 2011-02-01 19:14:38
你想让用户能够使用他们的谷歌id登录/使用你的网站吗?在这种情况下,您可以使用OpenId,这是一种标准化的登录方式(您也可以使用其他提供者)。有关实现的更多信息,请参见此处(http://openid.net/developers/libraries/)。这通常是在服务器上完成的,所以可能不是使用javascript。
https://stackoverflow.com/questions/4866598
复制相似问题