如何连接谷歌并允许我的用户邀请他们的联系人

我有一个用户注册的网站。 之后,他们获得了很棒的产品优惠,我想允许他们在我的网站上使用“Google连接按钮”,并通过Google网络邀请他们的朋友和联系人。

我怎样才能做到这一点?

跟进

我找到了样品

例如: http : //www.dumpsquestions.com/testing/wp-content/themes/ModulaBlueGiant/open/example.php

  • 根据你的建议我发现,它允许很多?

  • 来自电子邮件提供商的免费导入联系人(地址簿)脚本

  • Libero,Interia,Azet,Lycos,AOL,Bordermail,Doramail,Freemail,Kids,Rambler,Mail.ru,Care2,Grafitti,Walla,LinkedIn,

  • Inbox.com,Mail2World,Meta,IndiaTimes,Sapo.pt,Live / Hotmail,5Fm,Netaddress,Rediff,

  • Yahoo!,Aussiemail,KataMail,Gawab,GMX.net,Terra,Uk2,Apropo,Popstarmail,Mynet.com,

  • YouTube,Bigstring,OperaMail,Mail.com,Mail.in,Nz11,Inet,Pochta,Web.de,Canoe,India,Clevergo,Wp.pt,Evite,Yandex,

  • GMail,Atlas,Hushmail,O2,Techemail,FastMail,Zapakmail,Virgilio,Abv或社会门户网站,如Ning,Hyves,Meinvz,Plurk,Xanga,Tagged,Mydogspace,Konnects,Bebo,Friendfeed,Plazes,Flickr,Cyworld,Last.fm ,Mevio,Vkontakte,Skyrock,MySpace,Xuqa,Lovento,Faces,Plaxo,NetLog,

  • Facebook,Perfspot,Mycatspace,Livejournal,Famiva,Flixster,Xing,Multiply,Brazencareerist,Orkut,Bookcrossing,

  • Twitter,Koolro,Eons,Hi5,Fdcareer,Motortopia,Vimeo,Kincafe,Flingr,Friendster,Badoo。 此联系人导入程序脚本正在与内容管理系统(又称CMS)集成,如myBB,Dating Pro,JamRoom,Joomla,PHPMELODY,Boonex Dolphin,Vwebmail,Atmail5,PhpBB,phpFoX,SimpleMachines论坛(SMF),phpizabi,joovili,Joomla1.0 ,vBulletin,Drupal,jamit job,symfony,Buddy Zone,Wordpress,nowFire,Social Engine,PunBB,RoundCube。

  • Open Inviter是用PHP 5编写的(不需要数据库但需要cURL或wget)并在任何web服务器上运行(在Apache上测试),提供高级告诉朋友的function。 OpenInviterTM是一种免费的自托管解决方案,不使用第三方网关(或API)来导入联系人。

安装它说:

Openinviter安装指南。

感谢您下载OpenInviter General Package。 本文档将指导您完成安装过程。

答:要求:

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,已经做了很好的工作来尊重KISS(保持简单愚蠢!!)。

您是否希望用户能够使用他们的Google ID登录/使用您的网站? 在这种情况下,您可以使用OpenId ,一种标准化的登录方式(您也可以使用其他提供商)。 有关实现的更多信息,请查看此处( http://openid.net/developers/libraries/ )。 这通常在服务器上完成,所以可能不是用javascript。