Hi, May be you should check Facebook's API's and more specifically OAuth2.0 login. Check this.