Social Logins > Github App Setup
This document provides instructions on properly setting up a GitHub application so users can log in/register via Github on your site.
Please note that the Github social login feature requires the WP ULike Pro version.
Step 1: Create a GitHub OAuth Application
- Go to the GitHub Developer Settings page: https://github.com/settings/developers.
- Click on the "New OAuth App" button.
- Fill in the necessary information:
- Application Name: This can be anything you want, e.g., "WP ULike Social Login."
- Homepage URL: The URL of your WordPress site.
- Authorization callback URL: Enter the callback URL provided by WP ULike: (You can find this URL in "Step 2" settings)
- Click "Register Application" to create your GitHub OAuth application.
- After registering, you'll see the "Client ID" and "Client Secret." Keep these handy, as you'll need them later. If no Client Secret is shown, you need to click the Generate a new client secret button.
Step 2: Configure WP ULike Social Login
- In your WordPress admin dashboard, navigate to "ULike ᴾᴿᴼ" > "Configuration" > "Social Logins"
- Enable the "Social Logins" option.
- Add a new social network and choose "Github" for network option.
- Enter the "Client ID" and "Client Secret" from the GitHub OAuth application you created earlier.
- Choose your styling configurations and set an option for "Auto Display".
- You can also make a new profile tab and add [wp_ulike_pro_social_login] shortcode to make old users connect their social app.
- Save your settings.
step 3: Test the GitHub Social Login
- On your WordPress site, go to your login page. (or profile if you set shortcode in there)
- Click on the "GitHub" login option.
- You'll be redirected to GitHub's login page. Log in with your GitHub credentials.
- After successful authentication, you'll be redirected back to your profile with a sucessful.
Step 4: Verify Functionality
- After logging in with GitHub, make sure your user profile is updated with the appropriate GitHub information.
- Test the social login multiple times to ensure consistent functionality.
Congratulations! You've successfully set up GitHub social login for the WP ULike pro plugin.