@Controller @RequestMapping(value="/disconnect/facebook") public class DisconnectController extends Object
Constructor and Description |
---|
DisconnectController(org.springframework.social.connect.UsersConnectionRepository usersConnectionRepository,
String applicationSecret)
Constructs a DisconnectController.
|
public DisconnectController(org.springframework.social.connect.UsersConnectionRepository usersConnectionRepository, String applicationSecret)
usersConnectionRepository
- the current user's UsersConnectionRepository
needed to persist connections; must be a proxy to a request-scoped beanapplicationSecret
- the application's secret as assigned by Facebook at registration time. Used to validate signed_request.@RequestMapping(method=POST) public ResponseEntity<String> disconnect(@RequestParam(value="signed_request") String signedRequest)