This can be taken as a sample rails 4 app with devise, bootstrap and Oauth configured for fb and linkedIn.