Generic code for Social Media Login for any grails application.