Hello, I just tried sending a request to retrieve a contact's picture using OAuth Playground (OAuth 1.0) and it worked perfectly: http://googlecodesamples.com/oauth_playground/index.php (it doesn't display the picture, but if you don't go through the OAuth dance and send a request, it will return the expected 403).
Have you tried using a packet sniffer to check if the request sent to the API is indeed authorized? Additionally, what scope are you using to retrieve OAuth tokens? Best, Alain On Wed, Mar 21, 2012 at 10:42 AM, Wickel <[email protected]> wrote: > I originally posted this to the .Net GData API group, but they re-directed me > to this group(http://code.google.com/p/google-gdata/issues/detail?id=575). > > > I'm using the 1.8 version of the GData library, OAuth 1.0 and the contacts > API to attempt to fetch a contact photo. I'm getting a "The remote server > returned an error: (401) Unauthorized." with an inner exception of "Token > invalid - AuthSub token has wrong scope. This problem started occurring > fairly recently. It was working just fine. I troubleshooted the issue using > OAuth 1.0 and 2.0 playgrounds (2-legged). It works with OAuth 2.0, but not > OAuth 1.0, so it appears some kind of change on the back end as broken > support for retrieving photos from contacts. We can't use OAuth 2.0 at this > time. Any chance we could get this fixed? If necessary, I can provide our > test account creds to reproduce this issue. However, you should be able to > easily reproduce this problem yourself. The feed url looks something like > this: > https://www.google.com/m8/feeds/photos/media/<mailbox name>/<contact id> > > -- > You received this message because you are subscribed to the Google > Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html > -- Alain Vongsouvanh | Developer Programs Engineer -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html
