作者appleboy46 (小恶魔)
看板PHP
标题Re: [请益] 使用google帐号登入要怎麽做???
时间Sat May 26 19:10:53 2012
※ 引述《janet1 (★天秤女~佳佳就是我★)》之铭言:
: 请问有没有人知道
: 使用google帐号登入要怎麽做???
: 像这样
: https://login.yahoo.com/config/login?.intl=tw&.pd=c%3d7pP3Kh2p2e4XklntZWWfDLAC8w--&.done=https://tw.login.yahoo.com/cgi-bin/kcookie.cgi/blog/http%3A%2F%2Ftw.blog.yahoo.com%2F
: 在网路上找了许多google account的相关资料
: google API
: 不过都没讲到要怎麽串
: 用FB帐号登入反而比较多资料
: help~~
http://gitorious.org/lightopenid
An PHP 5 library for easy openid authentication.
Client login for Google Account:
$openid = new LightOpenID('www.example.com');
$openid->identity = '
https://www.google.com/accounts/o8/id';
header('Location: ' . $openid->authUrl());
The library requires PHP >= 5.1.2 with curl or http/https stream wrappers
enabled.
Please check your web server configuration (Apache, lighttpd, nginx)
Try it.
--
CodeIgniter 繁体中文手册:
http://goo.gl/T25Fk
CodeIgniter 繁体中文讨论区:
http://goo.gl/AdcRz
CodeIgniter 中文官方网站:
http://goo.gl/0NrVi
CodeIgniter Github:
http://goo.gl/2nVZr
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.135.247.243