Open mihajul opened 5 years ago
@mihajul how dod you do this I have the same problem?
@mihajul how dod you do this I have the same problem?
I added the following file in the "src/main/java/org/springframework/social/facebook/api/" folder inside my project:
@mihajul Thank you! Works fine for me!
We started getting the following exception when trying to login with facebook. As a workaround we removed "context" from the PROFILE_FIELDS array in UserOperations.java
`
org.springframework.social.UncategorizedApiException: (#100) Tried accessing nonexisting field (context) on node type (User)
org.springframework.social.facebook.api.impl.FacebookErrorHandler.handleFacebookError(FacebookErrorHandler.java:91) org.springframework.social.facebook.api.impl.FacebookErrorHandler.handleError(FacebookErrorHandler.java:59) org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:709) org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:662) org.springframework.web.client.RestTemplate.execute(RestTemplate.java:637) org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:312) org.springframework.social.facebook.api.impl.FacebookTemplate.fetchObject(FacebookTemplate.java:225) org.springframework.social.facebook.api.impl.FacebookTemplate.fetchObject(FacebookTemplate.java:220) org.springframework.social.facebook.api.impl.UserTemplate.getUserProfile(UserTemplate.java:53) org.springframework.social.facebook.api.impl.UserTemplate.getUserProfile(UserTemplate.java:49) org.springframework.social.facebook.connect.FacebookAdapter.fetchUserProfile(FacebookAdapter.java:50) org.springframework.social.facebook.connect.FacebookAdapter.fetchUserProfile(FacebookAdapter.java:30) org.springframework.social.connect.support.AbstractConnection.fetchUserProfile(AbstractConnection.java:111) `