Social login is popular among customers due to a faster registration process (almost no additional information is needed), and you can save the time of remembering all your accounts. However, before creating a social login in Magento 2, you have to connect to the API of other social networks such as Google, Facebook, Yahoo, Instagram, Pinterest, etc. Today, we will show you how to configure Twitter API in Magento 2.
When entering Twitter, you need to create an external application to connect your website to Twitter API. Then, application ID and secret (Client ID and secret or API ID and Secret), or application credentials, are all that we need. With this external application, your website will be linked to API. And these credentials play an important role in making Twitter users get access to your website.
To Configure Twitter API, let’s follow these steps:
How to Configure Twitter API in Magento 2 in 5 steps
Get access to dev.twitter.com/apps and sign in to start configuring Twitter API in Magento 2
Click Create New Application to create a new app.
Fill all the information into the required fields such as application name, description, and website address. You can fill callback URL or not. But we recommend you fill in that field to provide another place for Twitter to return after successfully authenticating. However, if you want to restrict your application from using callbacks, leave it blank! Tick on Yes, I have read and agree to the Twitter Developer Agreement, and then click Create your Twitter application.
When registering successfully, choose Keys and Access Tokens tab to see application credentials which include the consumer key and consumer secret.
Copy and paste these credentials into API fields in the extension’s setting of Twitter under Magento Admin.
We have shown you how to configure Twitter API in Magento 2. If you want to ask for support, contact directly to our Magento experts and specialists. If you want to know more about how to configure the API of other social networks in Magento 2, keep following us! However, if you are using Magento 2 platform for your store, you can purchase for Social Login and Share extension from Magenest to allow your customers to log in to the Magento store via Yahoo, Twitter, Instagram, Line, etc.