2011-08-25 94 views
0

我不知道如何開始。 請告訴我。如何使用Google帳戶通過openid登錄自己的網站?

我嘗試谷歌的API的PHP客戶端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 /> 

回答

相關問題