I'm using DotNetOpenAuth along with Microsoft.AspNet.Membership. I've done upto user login and save his mail id into my database with the help of this . Now I need to get the profile picture of a user from whatever service(facebook,gmail, etc.,) the user used.
I googled yet not found how to achieve this. If somebody know this means, please share it.
Thanks in advance!
I know for Facebook, once you have the users link, you can use that to get their picture via Graph: https://developers.facebook.com/docs/reference/api/using-pictures/
I basically use this:
graph.Link.AbsoluteUri.Replace("www.facebook", "graph.facebook") + "/picture"
Have not messed with Google or Twitter yet...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.