Answered by:
How to retrive profile picture with DotNetOpenAuth

Question
-
Hi,
I'm using VS 2013 and DotNetOpenAuth to authenticate users with facebook and I would like to retrive the profile picture of the user, so I can show the picture of the logged in user in my site.
I know that I can send extra data to facebook with the method "AddFacebook" and I also have the option to replace the method "requestauthentication" by the "createrequest" to have more control of this part, but I couldn't find a way to request the profile picture - and I'm not sure if the login request is the best moment for this request.
Thank you !
Dennes
Dennes - Se resolveu, classifique a mensagem, por favor - [http://www.bufaloinfo.com.br] NOVO DVD Segurança no ASP.NET : http://www.bufaloinfo.com.br/LearingSeriesSegurancaASPNET2.asp
- Moved by Herro wongMicrosoft contingent staff Friday, January 10, 2014 6:55 AM
Thursday, January 2, 2014 5:54 PM
Answers
-
ask at http://dotnetopenauth.net/
This forum is for base class library classes like System.Collection, System.IO,System.Globalization etc.
Visual C++ MVP- Edited by Sheng Jiang 蒋晟 Thursday, January 2, 2014 6:33 PM
- Proposed as answer by Just Karl Tuesday, January 14, 2014 7:43 PM
- Marked as answer by Just Karl Thursday, January 23, 2014 11:10 PM
Thursday, January 2, 2014 6:33 PM
All replies
-
Hi,
I'm using VS 2013 and DotNetOpenAuth to authenticate users with facebook and I would like to retrive the profile picture of the user, so I can show the picture of the logged in user in my site.
I know that I can send extra data to facebook with the method "AddFacebook" and I also have the option to replace the method "requestauthentication" by the "createrequest" to have more control of this part, but I couldn't find a way to request the profile picture - and I'm not sure if the login request is the best moment for this request.
Thank you !
Dennes
Dennes - Se resolveu, classifique a mensagem, por favor - [http://www.bufaloinfo.com.br] NOVO DVD Segurança no ASP.NET : http://www.bufaloinfo.com.br/LearingSeriesSegurancaASPNET2.asp
- Merged by Herro wongMicrosoft contingent staff Friday, January 3, 2014 1:25 AM Duplicate
Thursday, January 2, 2014 5:56 PM -
ask at http://dotnetopenauth.net/
This forum is for base class library classes like System.Collection, System.IO,System.Globalization etc.
Visual C++ MVP- Edited by Sheng Jiang 蒋晟 Thursday, January 2, 2014 6:33 PM
- Proposed as answer by Just Karl Tuesday, January 14, 2014 7:43 PM
- Marked as answer by Just Karl Thursday, January 23, 2014 11:10 PM
Thursday, January 2, 2014 6:33 PM -
Thursday, January 2, 2014 6:33 PM
-
Hello,
You might also ask in Microsoft's ASP.Net forums:
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})Tuesday, January 14, 2014 7:43 PM