Language: English
Enhance your platform's security and user experience by integrating Twitter authentication. Follow these detailed steps to obtain an API key and secret from Twitter, activate the feature from the admin panel, and monitor seamless changes.
Step 1: Obtain Twitter API Key and Secret
To get started, you need to create a project on the Twitter Developer Portal to obtain an API key and secret.
You can follow these steps to create your application:
- Visit the Twitter Developer Portal and log in with your Twitter account.
- On the dashboard page, click "Add App."
- Enter the app name.
- Copy the API key and secret and keep them for later use.
- Click "Set up" on the "App Details" page.
- Fill out the form and make sure to:
- Select "Read."
- Select "Request email from users."
- Choose "Web App, Automated App or Bot" as the app type.
- Enter the "Callback URL" as: https://domain.com/auth/twitter/callback
- Enter the "Website URL" as: https://domain.com/
- Fill in the Terms of Service URL; if it's not for production use, it can be any URL, even if it doesn't exist, such as: https://my-course.co/page/terms-conditions
- Fill in the Privacy Policy URL; if it's not for production use, it can be any URL, even if it doesn't exist, such as: https://my-course.co/page/privacy-policy
- Save your settings.
To guide you through the above steps, screenshots of the entire process are attached below:
1. Screenshot: Twitter Developer Portal showing the “Add App” button we need to click
2. Screenshot: Twitter Developer Portal requesting the app name
3. Screenshot: Page where we copy the API key and secret
4. Screenshot: App Details page where we click “Set up”
5a. Screenshot: First part of the user authentication form
5b. Screenshot: Second and final part of the user authentication form
Make sure to get your API key and secret, then move on to the next step.
Step 2: Enable Twitter Authentication from the Admin Panel
After obtaining your API key and secret, the next step is to enable Twitter authentication from the admin panel.
- Log in to the admin panel by clicking the "Admin Panel" icon in the main menu.
- Go to Plugin Marketplace from the sidebar.
- Search for and enable the Twitter Authentication plugin.
- Edit the plugin and fill in the API key and secret you obtained earlier.
- Click Save to apply the changes.
Step 3: Monitor the Changes
Once Twitter authentication is enabled and configured, users will see the option to log in using their Twitter accounts. This enhances security and convenience for users.
- Log out and go to the login page to see the new Twitter authentication option.
- Test the functionality by logging in with a Twitter account.
- Ensure the process is smooth and the login is successful.
By following these steps, you can easily integrate Twitter authentication into your platform, providing a secure and convenient login option for users. For more information and support, visit our website.