How I fixed it:

I think part of my problem was I was also using the username entered
by the user to look up their albums.  When they entered the non-gmail
email address instead of the username they had created I was getting
no albums in return.  It also seemed to not let the account login but
I may be incorrect about that.

My solution:

I go thought a username check when the user first sets up their
account:

1. do a request for albums withough credentials using the username/
email address supplied by the user
2. that will return a public album list for that user (possibly empty)
if the username exists.  In that response there is also the username
tied to the account.  I replace the user-supplied username with the
username from this feed.
3. I then authorise with the feed-supplied username and user-supplied
password.  This seems to work in most cases

The added benefit to this is that I can check seperatley for a valid
username and valip password and inform the user which one is
incorrect.  With big album feeds this is a little slow, but i need
those feeds for my app anyway so its not too much of an issue.

-- 
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 google-picasa-data-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-picasa-data-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to