Oauth - Social Login implementation
Social Login with Oauth 2.0 Oauth 2.0 framework enable to get data from web servers with limited access to the 3rd party websites behalf of the resource owners. There are several grant types to get data from resource servers Authorization code grant type - for web apps that have back end servers Implicit grant type - for client side scripts in web apps Client credentials grant type - server to server communications Resource owner password credentials grant type - for official apps like facebook mobile app etc.... in this example we use authorization code grant type lets starts the coding now. Step 1 - create facebook app go to the https://developers.facebook.com/ and create and app as follow. fill the relevant information go through the security check go tot the settings -> basic and copy the appID and the App secrete now you need to define what is the app domain . we are not going to host this app an...