facebook backend authentication and sweet alert