OAuth is an open standard protocol for authorization between two parties over a computer network. It allows users to authorize third party applications to access their data without sharing their credentials.
OAuth is a way for websites to allow other sites to access user information on their behalf. This means that when you log into Facebook, Twitter, Google+, etc., you're actually authorizing those services to access your personal information.
In this tutorial we will show how to set up callback URLs with OAuth so that when someone clicks on a link from Facebook or Twitter they get redirected back to our website. To do this, we need to use OAuth 2.0. OAuth 1.0 was used by Facebook and Twitter before they switched to OAuth 2.0, but it's not compatible with OAuth 2.0 so we'll only cover OAuth 2.0 here.
In order to add callbacks to your application, you must first set up your app settings. Go to your developer console and click on "App Settings" under "APIs & auth". Then scroll down until you see "OAuth2" and click on it. You will then see a list of options. Click on "Add Callback URL" and enter the callback URL you wish to use.
Once you've added the callback URL, you need to test it out. To do so, go back to your developer console and select the "API Access" tab. Under "Authorized redirect URIs", click on "Create new URI". Enter the callback URL you just entered into the field provided. Click "Save changes" and try making calls to the API using the callback URL. If everything works correctly, you should receive a response similar to the following.