Hi,
This is praveen
I am trying to get facebook user comment replays...
FacebookTemplate ft=new FacebookTemplate();
ft=new FacebookTemplate(app_accesstoken);
List<Comment> comment = ft.commentOperations().getComments(commment_id);
but at this i am getting this error
2012-04-26 17:11:45,458 [tomcat-http--50] WARN org.springframework.web.client.RestTemplate - GET request for "https://graph.facebook.com/100003753708672_118950984906691/comments?offset=0&limit=25" resulted in 401 (Unauthorized); invoking error handler
org.springframework.social.NotAuthorizedException: Error invalidating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons.
at org.springframework.social.facebook.api.impl.Faceb ookErrorHandler.handleFacebookError(FacebookErrorH andler.java:115)
at org.springframework.social.facebook.api.impl.Faceb ookErrorHandler.handleError(FacebookErrorHandler.j ava:60)
at org.springframework.web.client.RestTemplate.handle ResponseError(RestTemplate.java:486)
at org.springframework.web.client.RestTemplate.doExec ute(RestTemplate.java:443)
at org.springframework.web.client.RestTemplate.execut e(RestTemplate.java:415)
at org.springframework.web.client.RestTemplate.getFor Object(RestTemplate.java:213)
at org.springframework.social.facebook.api.impl.Faceb ookTemplate.fetchConnections(FacebookTemplate.java :185)
at org.springframework.social.facebook.api.impl.Comme ntTemplate.getComments(CommentTemplate.java:44)
at org.springframework.social.facebook.api.impl.Comme ntTemplate.getComments(CommentTemplate.java:37)
at com.iconma.socialtv.service.UserCommentReplyServic e.findUserCommentReplyByComid(UserCommentReplyServ ice.java:312)
at com.iconma.socialtv.web.UsercommentreplyController .getReplies(UsercommentreplyController.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
In this url "https://graph.facebook.com/100003753708672_118950984906691/comments?offset=0&limit=25"--
it showing the commets..
How to resolved this problem
Thank'you
praveen


Reply With Quote