Hello,
I am attempting to use the Facebook integration with Spring Social.
I have setup the standard configuration and have authorised my app to use my facebook account using the connect/facebook url and the ConnectController. This is storing my access token etc fine in the database as expected.
I then attempt to use the Facebook object to call:
However, when I attempt to execute the above code I get the following error, is there some setting in my Facebook app configuration I need to change?Code:public void postStatusWithLink(String link, String name, String caption, String description) { FacebookLink fLink = new FacebookLink(link, name, caption, description); facebook.feedOperations().postLink(caption, fLink); }
Code:org.springframework.social.OperationNotPermittedException: (#200) The user hasn't authorized the application to perform this action at org.springframework.social.facebook.api.impl.FacebookErrorHandler.handleFacebookError(FacebookErrorHandler.java:123) at org.springframework.social.facebook.api.impl.FacebookErrorHandler.handleError(FacebookErrorHandler.java:60) at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:486) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:443) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:415) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:294) at org.springframework.social.facebook.api.impl.FacebookTemplate.publish(FacebookTemplate.java:203) at org.springframework.social.facebook.api.impl.FeedTemplate.postLink(FeedTemplate.java:178) at org.springframework.social.facebook.api.impl.FeedTemplate.postLink(FeedTemplate.java:167) at com.tmm.enterprise.socialcv.service.FacebookService.postStatusWithLink(FacebookService.java:20)
Thanks,
Rob


Reply With Quote