Creating a Custom OAuth Application
Create a Custom OAuth Application
Creating a custom OAuth application for authenticating to Facebook involves obtaining the OAuth client credentials (App Id and App Secret), specifying a site URL for your application, and configure the OAuth redirect URI.
To obtain the OAuth client credentials:
- Login to Facebook.
- Navigate to https://developers.facebook.com/apps.
- Create a new application.
- Select Settings > Basic. The OAuthClientId (App Id) and the OAuthClientSecret (App Secret) display.
- Navigate to the Settings tab.
- To add a website platform, enter a Site URL.
To configure the OAuth redirect URI:
- Go to your application settings and navigate to the Products section.
- Add Facebook Login to the list of products.
- Navigate to the product settings, and set the OAuth redirect URI:
- For desktop applications, set the redirect URI to https://localhost:33333/, or a similar https url.
- For web applications, set the redirect URI to a location that shoud be used as a callback URL, where the user returns with the token that verifies that application access has been granted.