如何使用Google帐户使用openid登录自己的网站?

时间:2011-08-25 06:33:27

标签: php google-account

我不知道如何开始。 请告诉我。

我试过google-api-php-client https://code.google.com/p/google-api-php-client/

出现此错误

<!doctype html> 
<html> 
<head> 
  <title>OAuth2 Sample</title> 
  <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Droid+Serif|Droid+Sans:regular,bold' /> 
  <link rel='stylesheet' href='examples/oauth2/css/style.css' /> 
</head> 
<body> 
<div id='container'> 
  <div id='top'> 
    <div id='identity'> 
    <br /> 
<b>Fatal error</b>:  Uncaught exception 'apiServiceException' with message 'Error calling https://www.googleapis.com/buzz/v1/people/@me/@self?alt=json: (403) Access Not Configured' in /home/ape/domains/xxx.com/public_html/oauth2callback/src/io/apiREST.php:93
Stack trace:
#0 /home/ape/domains/xxx.com/public_html/oauth2callback/src/service/apiServiceResource.php(130): apiREST::execute(Object(apiServiceRequest))
#1 /home/ape/domains/xxx.com/public_html/oauth2callback/src/contrib/apiBuzzService.php(249): apiServiceResource-&gt;__call('get', Array)
#2 /home/ape/domains/xxx.com/public_html/oauth2callback/index.php(54): PeopleServiceResource-&gt;get('@me')
#3 {main}
  thrown in <b>/home/ape/domains/xxx.com/public_html/oauth2callback/src/io/apiREST.php</b> on line <b>93</b><br /> 

1 个答案:

答案 0 :(得分:1)