Thanks a lot Jeff. Let me try that. And then i will add you to my
prayers
On Oct 20, 12:14 pm, "Jeff Fisher" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have to modify your process some:
>
> - Picasa says "grant access". User clicks "grant access"
> - Picasa redirects to the xyz.com/picasa with the token in URL
> - xyz.com upgrades the token into a session token
> - xyz.com now saves the *session* token in DB in the user's account table
>
> Here's the specific PHP docs for this:
>
> http://code.google.com/apis/picasaweb/developers_guide_php.html#AuthSub
>
> The trick is you upgrade the token once and only once after being redirected
> back from Google Accounts. Also make sure that the link you are displaying
> to the user has "session=1" in its query parameters.
>
> Cheers,
> -Jeff
>
>
>
> On Mon, Oct 20, 2008 at 9:17 AM, hmb <[EMAIL PROTECTED]> wrote:
>
> > I've been trying to get picasa integration to work for a few days
> > without any success. I have lost sleep, weight and some hair.
>
> > I'm now wondering if i'm missing any fundamental steps.
>
> > Error i get:
> > ====================================================
> > Fatal error: Uncaught exception 'Zend_Gdata_App_AuthException' with
> > message 'Token upgrade failed. Reason: <HTML> <HEAD> <TITLE>Invalid
> > AuthSub token.</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
> > <H1>Invalid AuthSub token.</H1> <H2>Error 403</H2> </BODY> </HTML> '
> > in C:\Inetpub\vhosts\xyz.com\httpdocs\destinations\zend\library\Zend
> > \Gdata\AuthSub.php:136 Stack trace: #0 C:\Inetpub\vhosts\xyz.com
> > \httpdocs\destinations\zend\library\index.php(419):
> > Zend_Gdata_AuthSub::getAuthSubSessionToken('CJP-tevhAxDTqqT...') #1 C:
> > \Inetpub\vhosts\xyz.com\httpdocs\destinations\zend\library
> > \index.php(438): getAuthSubHttpClient() #2 C:\Inetpub\vhosts\xyz.com
> > \httpdocs\destinations\zend\library\index.php(904): processPageLoad()
> > #3 {main} thrown in C:\Inetpub\vhosts\xyz.com\httpdocs\destinations
> > \zend\library\Zend\Gdata\AuthSub.php on line 136
> > ============================================================
>
> > My Understanding of integrating xyz.com with picasa web album using
> > AuthSub
>
> > - register the xyz.com and the url (xyz.com/picasa/)
> > - Download the Zend library
> > - When user is logged in to xyz.com and wants to integrate picasa,
> > there will be a link that says "login to your picasa account and grant
> > access"
>
> > - The user clicks the link, goes to picasa, signs in
> > - Picasa says "grant access". User cliks "grant access"
> > - Picasa redirects to the xyz.com/picasa with the token in URL
>
> > - xyz.com now saves the token in DB in the user's account table
>
> > ----------------------
> > After this process is done, the xyz.com can post user pictures,
> > retrieve albums etc.
> > ---------------------
>
> > NOTE:
> > - The xyz.com does not store user's picasa password and picasa email
> > and picasa username
> > (or should teh site store email, username and password)
>
> > because
> > - when i connect to picasa using the user token and username as
> > 'DEFAULT' i get invalid token.
>
> > - And in all the posts i have seen in this forum, the sample codes
> > have email and password along with token in the requests to picasa
>
> > - The token works as long as the browser cache is not deleted. The
> > error appears when the cahce is deleted.
>
> > Please help and you will be in my prayers.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---