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
Post a Comment