Added function to support social login from apps

Thanks, Taher.