Posted on: 10/17/2014 1:23:26 PM | Views : 442

Hey guys,  can anybody provide an example how to retrieve profile picture url from Facebook?  Somehow i can`t do this. I can retrieve first name, last name, email, gender and it should allow to retrieve profile picture but it doesn`t.  I couldn't find any examples.  Here is my code: Startup.Auth.cs
var x = new FacebookAuthenticationOptions(); x.Scope.Add("email"); //x.Scope.Add("picture"); x.AppId = "*"; x.AppSecret = "***"; x.Provider = new FacebookAuthenticationProvider() { OnAuthenticated = async context => { context.Identity.AddClaim(new System.Security.Claims.Claim("FacebookAccessToken", context.AccessToken)); foreach(var claim in context.User) { var claim ...

Go to the complete details ...