I am using LightOpenID php class ie openid.php class. I want to fetch the user photo. But it does not return information about user’s photo. Please help me I have to fetch user account photo.
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
OpenID providers don’t have to return any information you’ve requested.
Here’s the list of attributes Google will return if you ask for them:
You can find it at google’s openid endpoint documentation.
Google won’t return any other attributes, regardless of whether you ask for them or not. Since the user photo isn’t on the list, you can’t get it.
As for yahoo, a post on developer.yahoo.com says that if you request
media/image/defaultit will return the profile picture. I don’t know whether that information is up to date though. If you still can’t get the profile picture by requesting that, then most likely yahoo doesn’t support it anymore (or you don’t have a profile picture).