Hi,
For some facebook users, I get this error:
after receiving the code from facebook, when I do that:Code:class org.springframework.social.facebook.api.GraphAPIException: Unexpected graph API exception org.springframework.social.facebook.api.impl.FacebookTemplate.fetchObject(FacebookTemplate.java:170) org.springframework.social.facebook.api.impl.UserTemplate.getUserProfile(UserTemplate.java:36) org.springframework.social.facebook.api.impl.UserTemplate.getUserProfile(UserTemplate.java:32) org.springframework.social.facebook.connect.FacebookApiAdapter.setConnectionValues(FacebookApiAdapter.java:42) org.springframework.social.facebook.connect.FacebookApiAdapter.setConnectionValues(FacebookApiAdapter.java:30) org.springframework.social.connect.support.AbstractConnection.setValues(AbstractConnection.java:172) org.springframework.social.connect.support.AbstractConnection.initKey(AbstractConnection.java:135) org.springframework.social.connect.support.OAuth2Connection.<init>(OAuth2Connection.java:71) org.springframework.social.connect.support.OAuth2ConnectionFactory.createConnection(OAuth2ConnectionFactory.java:58)
It looks like FacebookTemplate.fetchObject() tries to get something from the facebook profile that makes it fail, so I tried to compare 2 facebook accounts, (one that works and the other one that doesn't) but I don't see what could be the difference that makes the code break for 1 of them...Code:Connection<FacebookApi> connection = connectionFactory.createConnection(accessGrant);
Any idea?
Thanks!


Reply With Quote