email retrieved from userProfile is null (spring social) -


why app retrieve userprofile email null ? use spring social , configuration same configuration in spring_social_samples project created craig walls

connection<?> connection = providersigninutils.getconnection(request);           if (connection != null) {         userprofile = connection.fetchuserprofile();                  } 

and up.getemail() null except when using email facebook developer account.

thanks help

this how created button , worked fine:

   <a href="${pagecontext.request.contextpath}/auth/facebook?scope=email"><button class="btn btn-facebook"><i class="icon-facebook"></i> | <spring:message code="label.facebook.sign.in.button"/></button></a> 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -