takcy / openid4java

Automatically exported from code.google.com/p/openid4java
Apache License 2.0
0 stars 0 forks source link

Unable to get the avatar in yahoo #135

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am able to get all the other information from yahoo except the avatar, i am 
using the below code:-

FetchRequest fetch = FetchRequest.createFetchRequest();
fetch.addAttribute("email", "http://axschema.org/contact/email",true);
fetch.addAttribute("avatar","http://axschema.org/media/image/default",true);

ret.addExtension(fetch);

In the return I am using this:-

FetchResponse fetchResp = (FetchResponse) ext;

List emails = fetchResp.getAttributeValues("email");

String avatar =fetchResp.getAttributeValue("avatar");

Can anyone point to me what I am doing wrong here, any help would be greatly 
appreciated.

Original issue reported on code.google.com by anuj0...@gmail.com on 6 Dec 2010 at 10:00

GoogleCodeExporter commented 8 years ago
Double-check the attribute name/URI for avatar supported by yahoo.

Original comment by Johnny.B...@gmail.com on 31 Oct 2012 at 11:00