我读了 stackoverflow.com/questions/1827997/is-facebook-an-openid-provider 问题。
我也读了 stackoverflow.com/questions/2264266/what-is-the-openid-url-of-facebook 问题。但这些问题是2年前提出的,不知道Facebook和windowslive openid有什么变化。
索引.php 对于 openid 在这里(从这里下载((我使用了 lightopenid(:
<?php
require_once 'openid.php';
$openid = new LightOpenID("yourdomain.com");
$openid->identity = 'https://www.google.com/accounts/o8/id ';
$openid->required = array(
'namePerson/first',
'namePerson/last',
'contact/email',
);
$openid->returnUrl = 'http://yourdomain.com/login.php'
?>
<a href="<?php echo $openid->authUrl() ?>">Login with Google</a>
我尝试并取得成功的$openid->身份在这里:
谷歌 : https://www.google.com/accounts/o8/id
谷歌个人资料 : http://www.google.com/profiles/~YOURUSERNAME
雅虎 : https://me.yahoo.com
美国在线 : https://www.aol.com
WordPress : http://YOURBLOG.wordpress.com
实时日记 : http://www.livejournal.com/openid/server.bml
我的问题是:有没有像上面关于Facebook和Windowslive的链接?我看了Facebook网站(developer.facebook.com(,但它有点复杂。
Facebook和windowslive(尽管他们宣布了(仍然不是OpenID提供商。(截至本文发布时(